Написал минимально сервис базы данных. Получение валюты за опр. день или период

This commit is contained in:
Данил 2024-07-30 18:01:35 +03:00
parent 8f0207ad06
commit 92764ae964
6 changed files with 876 additions and 0 deletions

13
database/postgresql.js Normal file
View 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;