• 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.

    Parameters

    • app: Application | Express

      express app

    • 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