2010-09-29 12:18:46 +08:00
|
|
|
require(__dirname+"/test-helper");
|
|
|
|
|
|
|
|
//defaults
|
|
|
|
|
2010-09-30 12:52:57 +08:00
|
|
|
|
2010-09-29 12:18:46 +08:00
|
|
|
var client = new Client({
|
2010-10-03 13:27:16 +08:00
|
|
|
user: 'brian',
|
|
|
|
database: 'pgjstest'
|
2010-09-29 12:18:46 +08:00
|
|
|
});
|
2010-09-29 14:01:52 +08:00
|
|
|
client.connect();
|
2010-10-03 13:45:10 +08:00
|
|
|
client.on('ReadyForQuery', function() {
|
|
|
|
assert.ok(true, 'Connected');
|
|
|
|
client.disconnect();
|
2010-09-29 15:46:44 +08:00
|
|
|
});
|
2010-10-03 13:45:10 +08:00
|
|
|
|
|
|
|
// 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);
|
|
|
|
// });
|