0.1.0 • Published 7 years ago
pg-conn-pool v0.1.0
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:password@host.tld:9000/path');
const id = 12345;
connPool.query('SELECT * FROM User WHERE id = $1;', [id])
.then(result => {
console.log(result);
});
Testing
npm test
0.1.0
7 years ago