fix: dont use prepared statements for supabase
This commit is contained in:
6
packages/web/src/lib/db/index.ts
Normal file → Executable file
6
packages/web/src/lib/db/index.ts
Normal file → Executable file
@@ -1,12 +1,10 @@
|
||||
import * as schema from './schema'
|
||||
import * as schema from './schema';
|
||||
import { drizzle } from 'drizzle-orm/postgres-js';
|
||||
import { DB_URL } from '$env/static/private';
|
||||
import postgres from 'postgres';
|
||||
|
||||
const client = postgres(DB_URL);
|
||||
const client = postgres(DB_URL, { prepare: false });
|
||||
export const db = drizzle({
|
||||
schema,
|
||||
client
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user