claude drizzle integration

This commit is contained in:
2025-08-19 01:48:23 -04:00
parent 9942a11c0d
commit 92535f7e54
10 changed files with 135 additions and 91 deletions

12
src/db/index.ts Normal file
View File

@@ -0,0 +1,12 @@
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from './schema';
const connectionString = process.env.DATABASE_URL!;
const client = postgres(connectionString, {
prepare: false,
connect_timeout: 30,
idle_timeout: 30,
});
export const db = drizzle(client, { schema });