2014-10-23 10:52:21 -04:00
|
|
|
var ConnectionParameters = require(__dirname + '/../lib/connection-parameters');
|
|
|
|
var config = new ConnectionParameters(process.argv[2]);
|
|
|
|
|
|
|
|
for(var i = 0; i < process.argv.length; i++) {
|
|
|
|
switch(process.argv[i].toLowerCase()) {
|
|
|
|
case 'native':
|
|
|
|
config.native = true;
|
|
|
|
break;
|
|
|
|
case 'binary':
|
|
|
|
config.binary = true;
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
config.down = true;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-28 15:33:44 -05:00
|
|
|
if(process.env['PG_TEST_NATIVE']) {
|
|
|
|
config.native = true;
|
|
|
|
}
|
|
|
|
|
2014-10-23 10:52:21 -04:00
|
|
|
module.exports = config;
|