13 lines
293 B
JavaScript
13 lines
293 B
JavaScript
|
const pg = require('pg')
|
||
|
const config = require('../config')
|
||
|
|
||
|
const pool = new pg.Pool({
|
||
|
user: config.database.user,
|
||
|
password: config.database.pass || null,
|
||
|
host: config.database.host,
|
||
|
port: config.database.port,
|
||
|
max: 100,
|
||
|
database: config.database.dbname
|
||
|
})
|
||
|
|
||
|
module.exports = pool
|