mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
const pg = require('pg');
|
|
const config = require('../../config/src/main.js')();
|
|
|
|
const pool = new pg.Pool({
|
|
user: config['database']['user'],
|
|
password: config['database']['password'],
|
|
host: config['database']['host'],
|
|
port: config['database']['port'],
|
|
database: config['database']['name'],
|
|
});
|
|
|
|
module.exports = pool;
|