fix: dont use prepared statements for supabase

This commit is contained in:
2025-01-18 01:12:13 +01:00
parent 1c0b738f20
commit c1c0503ee3

6
packages/web/src/lib/db/index.ts Normal file → Executable file
View File

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