lets try sveltekit thensies

This commit is contained in:
2026-01-30 14:01:54 +13:00
commit 7b44b41579
23 changed files with 2436 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from './schema';
import { env } from '$env/dynamic/private';
if (!env.DATABASE_URL) throw new Error('DATABASE_URL is not set');
const client = postgres(env.DATABASE_URL);
export const db = drizzle(client, { schema });