summaryrefslogtreecommitdiff
path: root/db/db.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
committerjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
commit1a2241c40e10193c5ff7008a7b7b36cc1d855d96 (patch)
tree8a5587f10ca55b162d7e3254cb088b323a34c41b /db/db.ts
initial commit
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