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