node-go/server/data/db.js

8 lines
205 B
JavaScript
Raw Normal View History

2020-01-08 05:46:24 +00:00
const knex = require('knex');
const knexConfig = require('../knexConfig');
2020-01-08 05:46:24 +00:00
const env = process.env.NODE_ENV || 'development';
const configOptions = knexConfig[env];
2020-01-08 05:46:24 +00:00
module.exports = knex(configOptions);