9 lines
241 B
JavaScript
9 lines
241 B
JavaScript
const knex = require('knex');
|
|
const knexfile = require('../knexfile');
|
|
const { environment} = require('../config/config')
|
|
|
|
const env = environment || 'development';
|
|
const configOptions = knexfile[env];
|
|
|
|
module.exports = knex(configOptions);
|