Oracle Pool for Node.js
Taking generic-pool(https://github.com/coopernurse/node-pool) and the official oracle driver (https://github.com/oracle/node-oracledb) to create a very basic pool of Oracle connections.
Basic installation
-
Prerequisites:
- oracledb
- generic-pool
-
npm install ora-pool
GIT Repository
https://github.com/mobiledevsistemasgalileo/orapool
Example
Basic example
var orapool = ; var oradata = user : "FS_REGHORAS" pwd : "FSREGHORAS" tns : "TNSDATA";var pooldata = name : 'fspool' min : 0 max : 3 idleTimeoutMillis : 30000 log : true;// Creacion del poolvar pool = orapool; pool;
Limitations/Caveats
- Ensure you always release your connection at the end of use to avoid random false oracle errors.
- This is our first component so please have mercy!.
Development
- Clone the source repo
- Go wild