mirror of
https://github.com/opus-tango/socialdb-sh.git
synced 2026-11-15 00:27:00 +00:00
set up drizzle
This commit is contained in:
@@ -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}`,
|
||||
);
|
||||
Reference in New Issue
Block a user