mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
Написал минимально сервис базы данных. Получение валюты за опр. день или период
This commit is contained in:
parent
8f0207ad06
commit
92764ae964
6 changed files with 876 additions and 0 deletions
13
database/postgresql.js
Normal file
13
database/postgresql.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
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;
|
Loading…
Add table
Reference in a new issue