0.0.4 • Published 9 years ago

postgres-bluebird v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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