2
0
forked from jmug/cactoide

feat: implement psql and improvements

This commit is contained in:
Levente Orban
2025-08-27 08:47:12 +02:00
parent 36dc19933a
commit 3d133a6539
20 changed files with 1379 additions and 283 deletions

8
src/lib/database/db.ts Normal file
View File

@@ -0,0 +1,8 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import { env } from '$env/dynamic/private';
import * as schema from './schema';
import postgres from 'postgres';
const client = postgres(env.DATABASE_URL, {});
export const drizzleQuery = drizzle(client, { schema });