Sets up a PostgreSQL pool for the environment owner to be reused by other app components. The environment owner cannot bypass Row Level Security and database requests will only operate on specific tenant and environment rows.
express app
full database connection string
logger to log errors and shutdown action messages
shutdown actions middleware
Optional
optional pool configuration object
Generated using TypeDoc
Sets up a PostgreSQL pool for the environment owner to be reused by other app components. The environment owner cannot bypass Row Level Security and database requests will only operate on specific tenant and environment rows.