6 lines
162 B
TypeScript
6 lines
162 B
TypeScript
import { Pool } from 'pg';
|
|
import dotenv from 'dotenv';
|
|
dotenv.config();
|
|
|
|
const pool = new Pool({ connectionString: process.env.CONSTRING });
|
|
export default pool; |