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

8 lines
No EOL
199 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);