21 lines
456 B
JavaScript
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);
|
|
// });
|