blob: d095e5c9e8cab8ed55ed4ee9fe609b1d41cc51d5 (
plain) (
tree)
|
|
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 };
|