pg-queries

Neat promise and event based access layer around node-postgres

npm install pg-queries
6 downloads in the last week
11 downloads in the last month

pg-queries

Neat promise and event based access layer around node-postgres.

Installation

npm install pg-queries

Usage

Perform query(-ies) on particular connection.

var pgq = require('pg-queries');

pgq.connect().then(function(connection) {
  connection.query("select version()").then(function(rows) {
    // ....
  });
});

Immediate query.

var pgq = require('pg-queries');

pgq.query("select version()").then(function(rows) {
  // ....
});

License

MIT

npm loves you