node-postgres/test/integration/client/test-helper.js

21 lines
474 B
JavaScript
Raw Normal View History

var helper = require(__dirname+'/../test-helper');
module.exports = {
//creates a client from cli parameters
client: function() {
var client = new Client({
database: helper.args.database,
user: helper.args.user,
2010-11-21 04:09:18 +08:00
password: helper.args.password,
host: helper.args.host,
port: helper.args.port
});
client.connect();
return client;
},
connectionString: helper.connectionString,
2010-12-15 09:23:01 +08:00
Sink: helper.Sink,
pg: helper.pg
};