node-postgres/result.js
Brian M. Carlson 31b2b1da6f All tests passing in isolation
Still have weird race conditions & shutdown/error/resume conditions to tackle
2013-11-11 23:20:04 -06:00

13 lines
336 B
JavaScript

var path = require('path')
var pgPath;
//support both pg & pg.js
//this will eventually go away when i break native bindings
//out into their own module
try {
pgPath = path.dirname(require.resolve('pg'))
} catch(e) {
pgPath = path.dirname(require.resolve('pg.js'))
}
module.exports = require(path.join(pgPath, 'lib', 'result.js'))