node-postgres/test/api-tests.js
2010-10-03 00:45:10 -05:00

21 lines
456 B
JavaScript

require(__dirname+"/test-helper");
//defaults
var client = new Client({
user: 'brian',
database: 'pgjstest'
});
client.connect();
client.on('ReadyForQuery', function() {
assert.ok(true, 'Connected');
client.disconnect();
});
// client.query('create temporary table bang (id integer)');
// client.query('insert into bang(id) VALUES(1)');
// client.query('select * from bang',function(err, results, fields) {
// assert.equal(err, null);
// });