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