2016-12-05 17:18:25 -05:00

11 lines
393 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
}