Files
website/packages/web/src/lib/db/index.ts
2025-01-18 01:21:00 +01:00

12 lines
300 B
TypeScript
Executable File

import * as schema from './schema';
import { drizzle } from 'drizzle-orm/postgres-js';
import { DB_URL } from '$env/static/private';
import postgres from 'postgres';
console.log('DB_URL', DB_URL);
const client = postgres(DB_URL, { prepare: false });
export const db = drizzle({
schema,
client
});