This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-06 13:21:00 -04:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const knexfile = require('../../knexfile');
|
|
|
|
const knexConfig = knexfile[process.env.NODE_ENV];
|
|
|
|
const knexConn = knexConfig.connection;
|
|
|
|
|
|
|
|
const params = {
|
|
|
|
driver: knexConfig.client,
|
2016-06-14 10:51:48 -04:00
|
|
|
connection: (knexConfig.client == 'sqlite3') ? knexConn.filename : knexConn,
|
2016-05-06 13:21:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
const nodeQuery = require('ci-node-query')(params);
|
|
|
|
|
|
|
|
module.exports = nodeQuery.getQuery();
|