pg-connection
v1.1.3
Published
Pg wrapper.
Downloads
13
Maintainers
Readme
PgConnection
A wrapper for the pg library that supports transactions and uses promises.
Basic usage
pgConnection.connect(function(db) {
var select = "SELECT * FROM myTable";
db.find(select).then(function(data) {
response.send(data);
}, function(err) { throw err; );
});