lots of layout; server not really running yet
This commit is contained in:
8
server/db/index.ts
Normal file
8
server/db/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import createConnectionPool, { sql } from "@databases/pg";
|
||||
import dotenv from 'dotenv';
|
||||
dotenv.config({ path: '../.env' });
|
||||
|
||||
const db = createConnectionPool(process.env.CONSTRING);
|
||||
|
||||
export { sql };
|
||||
export default db;
|
||||
Reference in New Issue
Block a user