spiced-pg

1.0.4 • Public • Published

Spiced PG

Usage

var spicedPg = require('spiced-pg');

var db = spicedPg('postgres:spicedling:password@localhost:5432/cities');

db.query('SELECT * FROM cities').then(function(results) {
    console.log(results.rows);
}).catch(function(err) {
    console.log(err);
});

Readme

Keywords

none

Package Sidebar

Install

npm i spiced-pg

Weekly Downloads

5

Version

1.0.4

License

ISC

Unpacked Size

2.43 kB

Total Files

3

Last publish

Collaborators

  • spiced