Files
alert-message-center/apps/server/src/db/index.ts
d0zingcat 451793f6ce feat: add lint
Signed-off-by: d0zingcat <iamtangli42@gmail.com>
2026-01-14 19:36:46 +08:00

10 lines
334 B
TypeScript

import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import * as schema from "./schema";
const connectionString =
process.env.DATABASE_URL ||
"postgres://postgres:password@localhost:5432/alert_message_center";
const client = postgres(connectionString);
export const db = drizzle(client, { schema });