Skip to content

lourenzo/postgres-bluebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PostgreSQL driver, promisified by Bluebird

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •