KI-AGENT: Zentralen Push-Server Stack ergänzen
This commit is contained in:
10
push-server/apps/api/src/db/client.ts
Normal file
10
push-server/apps/api/src/db/client.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { drizzle } from "drizzle-orm/node-postgres";
|
||||
import pg from "pg";
|
||||
import * as schema from "@fedeo/push-db";
|
||||
import { env } from "../config/env.js";
|
||||
|
||||
export const pool = new pg.Pool({
|
||||
connectionString: env.DATABASE_URL,
|
||||
});
|
||||
|
||||
export const db = drizzle(pool, { schema });
|
||||
Reference in New Issue
Block a user