summaryrefslogtreecommitdiff
path: root/db/db.ts
blob: ab99001481109278dce4058f3a32102aef4607ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { drizzle } from 'drizzle-orm/node-postgres';
import { Pool } from 'pg';

const pool = new Pool({
  // connectionString: process.env.DATABASE_URL as string,
  connectionString: "postgresql://dts:dujinDTS2@localhost:5432/evcp"
});

const db = drizzle(pool);


export default db;