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,
|
|
|
|
password: helper.args.password
|
|
|
|
});
|
2010-10-26 13:31:58 +08:00
|
|
|
client.connect();
|
|
|
|
return client;
|
2010-10-25 14:40:24 +08:00
|
|
|
}
|
|
|
|
};
|