chore: flatten repo
This commit is contained in:
10
src/lib/db/index.ts
Executable file
10
src/lib/db/index.ts
Executable file
@@ -0,0 +1,10 @@
|
||||
import { env } from '$env/dynamic/private';
|
||||
import * as schema from './schema';
|
||||
import { drizzle } from 'drizzle-orm/postgres-js';
|
||||
import postgres from 'postgres';
|
||||
|
||||
const client = postgres(env.DB_URL, { prepare: false });
|
||||
export const db = drizzle({
|
||||
schema,
|
||||
client
|
||||
});
|
||||
Reference in New Issue
Block a user