forked from DebaucheryLibrarian/traxxx
13 lines
336 B
JavaScript
Executable File
13 lines
336 B
JavaScript
Executable File
'use strict';
|
|
|
|
const config = require('config');
|
|
const knex = require('knex');
|
|
|
|
module.exports = knex({
|
|
client: 'pg',
|
|
connection: config.database.owner,
|
|
// performance overhead, don't use asyncStackTraces in production
|
|
asyncStackTraces: process.env.NODE_ENV === 'development',
|
|
// debug: process.env.NODE_ENV === 'development',
|
|
});
|