tenantpilot/lib/db/index.ts
2025-11-18 23:24:41 +01:00

8 lines
222 B
TypeScript

import { drizzle } from "drizzle-orm/node-postgres";
import { Pool } from "pg"
import { env } from "@/lib/env.mjs";
export const pool = new Pool({
connectionString: env.DATABASE_URL,
});
export const db = drizzle(pool);