Create a Heroku Postgres Client in Node.js
For Salesforce Functions written in Node.js, use the node-postgres (pg) package to access your Heroku PostgreSQL database. Access the DATABASE_URL
environment variable with process.env
to create a Postgres client instance.