> On 12 Mar 2015, at 18:37, Gary Furash <[email protected]> wrote: > > Given an Oracle DB, it seems my choices are the node-oracledb (which isn't > part of NPM) and node-jdbc, both of which seem to require an inordinate > amount of prerequisites (e.g., getting the right C++ compiler, python, etc.). > Is there a simpler way of connecting to a DB via NODE, a la JDBC (e.g., you > just need a jar file for the db).
Any connector written in Javascript won't need the build infrastructure, so things like node-mysql2 work just fine without any compiler. That means the actual protocol implementation in Javascript. However, most databases provide a C or C++ library that must be linked to, and that requires building something that can be linked to from node/v8. That means C++, the compiler for that, and python about 2.7 to run node-gyp. Then there's JDBC, which is worse, since the C++ runtime has to be bridged to Java, I'd expect via JNI, so you'd need a C++ compiler, python, _and_ java SDK to boot. So TL;DR: some things are as simple as install a plain js module. Oracle? Possibly not. Aria -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/428A66B0-C9DA-4B75-A9AE-54238A15DFBD%40dinhe.net. For more options, visit https://groups.google.com/d/optout.
