LabelledPgPool<T>: Pool & {
    label: T;
}

An abstract type extending PostgreSQL Pool. All labelled pool types extend pg.Pool but labelled pool types are not interchangeable so typescript can be leveraged to ensure the correct pool type is being used in a given context.

Type Parameters

  • T extends string

Type declaration

  • label: T

Generated using TypeDoc