Skip to content

joaosp/pg-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version Build status Test coverage License Dependency status

pg-then

  • Use postgresql with promise api, based on pg.

Install

$ npm install pg
$ npm install pg-then

Usage

let pg = require('pg-then');

let pool = pg.Pool('postgres://username:password@localhost/database');

pool.query('SELECT ...')
.then(...)
.catch(...);
let pg = require('pg-then');

let client = pg.Client('postgres://username:password@localhost/database');

client.query('SELECT ...')
.then(...)
.catch(...);

// ...

client.end();

License

MIT

About

[pg-then]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published