You should check out https://github.com/strongloop/strong-oracle. It was initially folked from node-oracle. strong-oracle supports connection pooling. You can find an example at:
https://github.com/strongloop/strong-oracle/blob/master/example/app.js On Thursday, March 20, 2014 4:42:52 PM UTC-7, Bob Spero wrote: > > Does anyone know if the oracle package allows reuse of the connection? I keep > on getting an error that ReferenceError: oracle_driver is not defined: > > Oracle.connect = function(callback) { > oracle_driver.connect(connectData, function(err, connection) { > if (err) { > console.log(err); > } else { > callback(err, connection); > } > connection.close(); > }); > } > > Oracle.query = function(query, callback) { > Oracle.connect(function(err, connection) { > connection.execute(query, [], function(err, results) { > if (err) { > console.log(err); > callback(err, results); > } else { > callback(err, results); > } > }); > }); > } > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- 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]. For more options, visit https://groups.google.com/d/optout.
