Installation
pnpm add @smplcty/db pgpnpm add -D @types/pgRequires Node ≥ 20 and pg ≥ 8. pg is a
peer dependency — @smplcty/db uses
whichever version your service installs.
Loading environment variables
Section titled “Loading environment variables”The library does not call dotenv/config. Load .env at the edge
of your application — for example with Node’s built-in flag:
node --env-file=.env dist/server.jsconnect() and resolveDatabaseUrl() read process.env at call time,
so make sure your variables are set before the module that calls them is
imported.
Continue to the Quick start.