Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wankdanker/node-odbc-pool
A connection pool for node's ODBC module
https://github.com/wankdanker/node-odbc-pool
Last synced: 2 months ago
JSON representation
A connection pool for node's ODBC module
- Host: GitHub
- URL: https://github.com/wankdanker/node-odbc-pool
- Owner: wankdanker
- Created: 2014-05-08T20:44:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T14:53:58.000Z (over 6 years ago)
- Last Synced: 2024-10-28T08:30:50.842Z (2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-odbc-pool
--------------A connection pool for node-odbc based on generic-pool.
description
-----------This is a connection pooling module that creates instances of generic-pool for each
connection string that is encountered. Using this pool module gains all the benefits
of using the generic-pool module including min and max connections.install
-------```bash
npm install odbc-pool
```usage
-----node-odbc-pool does not depend on node-odbc, so you must `npm install odbc` before
being able to use this module. The reason for this is so that you can install whatever
verion of node-odbc that you want and not have to mess with the version that this
module might depend on.```javascript
var pool = require('odbc-pool');var myPool = new pool({
min : 1
, max : 10
, log : true
});myPool.open(process.env.ODBC_CONNECTION_STRING, function (err, client) {
console.log(client.querySync('select top 10 * from test'));client.close(function () {
console.log('closed');
});
});
```license
-------MIT