9 lines
200 B
JavaScript
9 lines
200 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);
|