• Creates a extended Pool client :

    • use passed srv service name in order to resolve the port
    • make dealing with failover (re-resolving the port) opaque
    • use exponential backoff retry internally with default timeout and factor
    • intercept 'query' operation and handle connection errors runtime
    • all other operations are bind to pool object without modifications

    Returns

    pg.Pool instance

    Parameters

    • dnsResolver: ((serviceName: string) => Promise<SrvRecord>)
        • (serviceName: string): Promise<SrvRecord>
        • Parameters

          • serviceName: string

          Returns Promise<SrvRecord>

    • logger: Logger
    • __namedParameters: PoolConfig

    Returns Promise<Pool>

Generated using TypeDoc