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

18 lines
412 B
JavaScript

require(__dirname+"/test-helper");
var client = new Client({
user: 'brian',
database: 'pgjstest'
});
client.connect();
client.on('ReadyForQuery', function() {
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);
// });