Updated db connection

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2025-01-28 19:06:59 +01:00
parent 0a3e3869c7
commit 2c137d7395

View File

@@ -1,11 +1,12 @@
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
const db = drizzle({
connection: {
url: env.prod.postgresURI
},
schema: schema
})
export default db