Replace postgres package with pg for PostgreSQL support with drizzle

This commit is contained in:
Aman Varshney
2025-04-10 11:39:55 +05:30
parent f317482e98
commit 8120222817
4 changed files with 11 additions and 7 deletions

View File

@@ -1,5 +1,3 @@
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import { drizzle } from "drizzle-orm/node-postgres";
const queryClient = postgres(process.env.DATABASE_URL || "");
export const db = drizzle({ client: queryClient });
export const db = drizzle(process.env.DATABASE_URL || "");