feat: db init
This commit is contained in:
parent
0b1cbef59e
commit
a6fc74e851
23 changed files with 1536 additions and 5553 deletions
6
packages/db/src/database.ts
Normal file
6
packages/db/src/database.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { drizzle } from "drizzle-orm/postgres-js";
|
||||
import postgres from "postgres";
|
||||
|
||||
const client = postgres(process.env.DATABASE_URL!);
|
||||
|
||||
export const db = drizzle(client);
|
||||
Loading…
Add table
Add a link
Reference in a new issue