As of pg@6, node-postgres has promise suport out of the box. Do not use this package. It is no longer maintained!
Connect to a postgres database with a promise api. Pretty much just an implementation of the suggestions in the bluebird api
var Promise =var getConnection = connectionStringPromise
An example with transactions:
var Promise =var getConnection = connectionStringgetConnection
- Ensure you have a local postgres database named
DATABASE_URLpointing to a database.