Brian C 1b5f3e33c4
Monorepo (#2014)
* First crack at monorepo

* Update test command

* Update path to script

* Remove node 6 from CI
2019-12-17 08:32:08 -08:00

26 lines
529 B
JavaScript

'use strict'
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
}
}
if (process.env['PG_TEST_NATIVE']) {
config.native = true
}
module.exports = config