Lambda-School-Labs/allay-be

View on GitHub
data/dbConfig.js

Summary

Maintainability
A
0 mins
Test Coverage
// for configuring knex and our database

const knex = require('knex');
const knexfile = require('../knexfile');
const env = process.env.NODE_ENV || 'development';
const configOptions = knexfile[env];

module.exports = knex(configOptions);