node-go/packages/play-node-go/server/data/db.js
2020-02-05 16:44:31 -08:00

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);