rg_backend_academy/lecture_4/employees-cli/db-client.js

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;