mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
13 lines
336 B
JavaScript
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'))
|