• Sets up a PostgreSQL pool for the environment owner. The environment owner cannot bypass Row Level Security and database requests will only operate on specific tenant and environment rows.

    Parameters

    • connectionString: string

      full database connection string

    • logger: DbLogger

      logger to log errors and shutdown action messages

    • shutdownActions: DbShutdownActions

      shutdown actions middleware

    • Optional poolConfig: PoolConfig

      optional pool configuration object

    Returns EnvOwnerPgPool

Generated using TypeDoc