set up drizzle

This commit is contained in:
Nayan Sawyer
2026-03-13 18:05:56 -04:00
parent 532e333c3e
commit 95e68037f0
3 changed files with 27 additions and 0 deletions

8
src/db/drizzle.ts Normal file
View File

@@ -0,0 +1,8 @@
import { config } from "dotenv";
import { drizzle } from "drizzle-orm/node-postgres";
config({ path: ".env" });
export const db = drizzle(
`postgresql://${process.env.POSTGRES_USER}:${process.env.POSTGRES_PASSWORD}@localhost:5432/${process.env.POSTGRES_DB}`,
);