mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-28 03:00:29 -04:00
9 lines
302 B
TypeScript
9 lines
302 B
TypeScript
import { drizzle } from 'drizzle-orm/postgres-js'
|
|
import postgres from 'postgres'
|
|
|
|
const connectionString = process.env.DATABASE_URL!
|
|
|
|
// Disable prefetch as it is not supported for "Transaction" pool mode
|
|
const client = postgres(connectionString, { prepare: false })
|
|
export const db = drizzle(client)
|