8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
|
const knex = require('knex');
|
||
|
const knexfile = require('../knexfile');
|
||
|
|
||
|
|
||
|
const env = process.env.NODE_ENV || 'development';
|
||
|
const configOptions = knexfile[env];
|
||
|
|
||
|
module.exports = knex(configOptions);
|