pg-queries
v0.0.3
Published
Neat promise and event based access layer around node-postgres
Downloads
2
Readme
pg-queries
Neat promise and event based access layer around node-postgres.
Installation
npm install pg-queries
Usage
Immediate query.
var pgq = require('pg-queries');
pgq.connect().then(function(connection) {
connection.query("select version()").then(function(rows) {
// ....
});
});
Perform query(-ies) on particular connection.
var pgq = require('pg-queries');
pgq.query("select version()").then(function(rows) {
// ....
});
License
MIT