feat: creates backend for the project
This commit is contained in:
10
backend/src/db/pool.ts
Normal file
10
backend/src/db/pool.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Pool } from 'pg';
|
||||
import { config } from '../config';
|
||||
|
||||
export const pool = new Pool({
|
||||
host: config.db.host,
|
||||
port: config.db.port,
|
||||
database: config.db.database,
|
||||
user: config.db.user,
|
||||
password: config.db.password,
|
||||
});
|
||||
Reference in New Issue
Block a user