postgres-bluebird
v0.0.4
Published
PostgreSQL promisified by Bluebird
Downloads
5
Maintainers
Readme
postgres-bluebird
Node.js PostgreSQL driver, promisified by Bluebird - and using Bluebird's *Async suffix syntax
This package exposes a promisified version of pg's API, so you can use it in BlueBird's manner:
var pg = require('postgres-bluebird');
// pg API with *Async suffix
pg.connectAsync(...).spread(function(connection, release) {
return connection.queryAsync("...")
.then(function(result) {
console.log("rows", result.rows);
})
.finally(function() {
release();
});
});
This package was inspired by this answer