Updated path for drizzle

This commit is contained in:
2024-10-03 17:55:01 +02:00
parent f5827809c0
commit 1497ec084c
28 changed files with 37 additions and 37 deletions

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

@@ -0,0 +1,11 @@
import { drizzle } from "drizzle-orm/postgres-js"
import postgres from "postgres"
import env from "utils/Env.js"
import * as schema from "./schema.js"
const queryClient = postgres(env.prod.postgresURI)
const db = drizzle(queryClient, {
schema
})
export default db