8 lines
203 B
JavaScript
8 lines
203 B
JavaScript
import "dotenv/config";
|
|
import { Client } from "pg";
|
|
|
|
// The pg client reads PGHOST, PGPORT, PGDATABASE, PGUSER, and PGPASSWORD from the environment.
|
|
const client = new Client();
|
|
|
|
export default client;
|