2016-11-18 21:59:22 -05:00
|
|
|
'use strict';
|
|
|
|
|
2016-11-21 16:39:56 -05:00
|
|
|
const Pg = require('./Pg');
|
2016-11-22 18:26:43 -05:00
|
|
|
const PgNative = require('./PgNative')
|
2016-11-18 21:59:22 -05:00
|
|
|
|
|
|
|
module.exports = config => {
|
2016-11-22 18:26:43 -05:00
|
|
|
return (config.native)
|
|
|
|
? new PgNative(config.connection)
|
|
|
|
: new Pg(config.connection);
|
2016-11-18 21:59:22 -05:00
|
|
|
};
|