2017-08-05 17:24:49 -05:00

11 lines
397 B
JavaScript

// support both pg & pg.js
// this will eventually go away when i break native bindings
// out into their own module
try {
module.exports.Result = require('pg/lib/result.js')
module.exports.prepareValue = require('pg/lib/utils.js').prepareValue
} catch (e) {
module.exports.Result = require('pg.js/lib/result.js')
module.exports.prepareValue = require('pg.js/lib/utils.js').prepareValue
}