adejs/utils/db.js

10 lines
208 B
JavaScript
Raw Normal View History

2017-09-23 14:53:56 +02:00
const db = require('settings/config').DATABASE;
module.exports = new require('pg').Pool({
database: db.DBNAME,
user: db.USERNAME,
password: db.PASSWORD,
host: db.HOST,
port: db.PORT,
});