node-postgres/index.js
brianc 8b9e97f5b9 update version of node-pool closes gh #223
added integration test to catch any future regressions
2012-12-04 17:53:04 -06:00

14 lines
247 B
JavaScript

var pg = require('./lib')
var Client = pg.Client;
pg.connect('pg://localhost/postgres', function(err, client) {
console.log(err)
})
new Client({database: 'postgres'}).connect(function(err) {
console.log(err);
console.log('connected')
})