0.1.0 • Published 7 years ago

pg-conn-pool v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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