node-query/lib/adapters/Pg/index.js

11 lines
206 B
JavaScript

'use strict';
const Pg = require('./Pg');
const PgNative = require('./PgNative')
module.exports = config => {
return (config.native)
? new PgNative(config.connection)
: new Pg(config.connection);
};