aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/postgres.ts
blob: d095e5c9e8cab8ed55ed4ee9fe609b1d41cc51d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import * as dotenv from 'dotenv';
import { Pool, PoolConfig } from 'pg';
dotenv.config();
const client: PoolConfig = {
    user: process.env.AURORA_USER,
    database: process.env.AURORA_DB,
    password: process.env.AURORA_PASSWORD,
    port: parseInt(process.env.AURORA_PORT || '5432', 10),
    host: process.env.AURORA_HOST,
};
const postgresClient = new Pool(client);
export { postgresClient };