Files
editor/packages/db/src/drizzle.ts
T
2026-02-11 17:09:08 +09:00

12 lines
313 B
TypeScript

import { drizzle } from 'drizzle-orm/postgres-js'
import postgres from 'postgres'
import * as schema from './schema'
const connectionString = process.env.POSTGRES_URL!
const client = postgres(connectionString, { prepare: false })
export const db = drizzle({ client, schema })
export type Database = typeof db