From 1a2241c40e10193c5ff7008a7b7b36cc1d855d96 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Tue, 25 Mar 2025 15:55:45 +0900 Subject: initial commit --- db/db.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/db.ts (limited to 'db/db.ts') diff --git a/db/db.ts b/db/db.ts new file mode 100644 index 00000000..ab990014 --- /dev/null +++ b/db/db.ts @@ -0,0 +1,12 @@ +import { drizzle } from 'drizzle-orm/node-postgres'; +import { Pool } from 'pg'; + +const pool = new Pool({ + // connectionString: process.env.DATABASE_URL as string, + connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp" +}); + +const db = drizzle(pool); + + +export default db; \ No newline at end of file -- cgit v1.2.3