pg-conn-pool
v0.1.0
Published
A Postgres connection pool class.
Downloads
2
Readme
npm-pkg-skeleton
A Postgres connection pool class.
Usage
npm install pg-conn-pool
const PgConnPool = require('pg-conn-pool');
const connPool = new PgConnPool('protocol://user:[email protected]:9000/path');
const id = 12345;
connPool.query('SELECT * FROM User WHERE id = $1;', [id])
.then(result => {
console.log(result);
});
Testing
npm test