New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

odbc-pool

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

odbc-pool

A connection pool for the ODBC module

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
206
16.38%
Maintainers
1
Weekly downloads
 
Created
Source

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

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.

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

Keywords

odbc

FAQs

Package last updated on 13 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts