2010-10-25 14:40:24 +08:00
|
|
|
var helper = require(__dirname+'/../test-helper');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
//creates a client from cli parameters
|
|
|
|
client: function() {
|
2010-10-26 13:31:58 +08:00
|
|
|
var client = new Client({
|
2010-10-25 14:40:24 +08:00
|
|
|
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
|
2010-10-25 14:40:24 +08:00
|
|
|
});
|
2010-12-20 04:49:14 +08:00
|
|
|
|
2010-10-26 13:31:58 +08:00
|
|
|
client.connect();
|
|
|
|
return client;
|
2010-12-14 07:21:40 +08:00
|
|
|
},
|
|
|
|
connectionString: helper.connectionString,
|
2010-12-15 09:23:01 +08:00
|
|
|
Sink: helper.Sink,
|
2011-03-06 01:32:18 +08:00
|
|
|
pg: helper.pg,
|
|
|
|
args: helper.args
|
2010-10-25 14:40:24 +08:00
|
|
|
};
|