backend/data/db.js

9 lines
200 B
JavaScript
Raw Normal View History

2020-05-02 19:06:34 +00:00
const knex = require('knex');
const knexfile = require('../knexfile');
const env = process.env.NODE_ENV || 'development';
const configOptions = knexfile[env];
module.exports = knex(configOptions);