mirror of
https://github.com/d0zingcat/alert-message-center.git
synced 2026-05-24 23:16:53 +00:00
10 lines
334 B
TypeScript
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 });
|