13 lines
332 B
TypeScript
13 lines
332 B
TypeScript
import { drizzle } from 'drizzle-orm/node-postgres';
|
|
import { relations } from '../../drizzle/relations';
|
|
|
|
import { Pool } from "pg";
|
|
|
|
const pool = new Pool({
|
|
connectionString: process.env.DATABASE_URL || 'postgres://postgres:password@localhost:5432/veridian',
|
|
});
|
|
|
|
export const db = drizzle(
|
|
{ client: pool, relations }
|
|
);
|