summaryrefslogtreecommitdiff
path: root/db/db.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
commite0dfb55c5457aec489fc084c4567e791b4c65eb1 (patch)
tree68543a65d88f5afb3a0202925804103daa91bc6f /db/db.ts
3/25 까지의 대표님 작업사항
Diffstat (limited to 'db/db.ts')
-rw-r--r--db/db.ts12
1 files changed, 12 insertions, 0 deletions
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