node-postgres/index.js

14 lines
247 B
JavaScript
Raw Normal View History

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')
})