traxxx/src/knex.js

14 lines
365 B
JavaScript
Raw Normal View History

'use strict';
const config = require('config');
const knex = require('knex');
module.exports = knex({
client: 'pg',
connection: config.database.owner,
2023-12-01 01:19:53 +00:00
pool: config.database.pool,
// performance overhead, don't use asyncStackTraces in production
asyncStackTraces: process.env.NODE_ENV === 'development',
2020-12-19 22:01:17 +00:00
// debug: process.env.NODE_ENV === 'development',
});