refactor(lst): refactored to be back to npm from bun
This commit is contained in:
11
database/dbclient.ts
Normal file
11
database/dbclient.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import {drizzle} from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
import dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const database = process.env.DATABASE_URL || "";
|
||||
|
||||
const queryClient = postgres(database);
|
||||
|
||||
export const db = drizzle({client: queryClient});
|
||||
Reference in New Issue
Block a user