mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
13 lines
No EOL
331 B
JavaScript
13 lines
No EOL
331 B
JavaScript
const pg = require("pg");
|
|
const config = require("../config/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; |