This interface is the subset of pg driver's Pool class that kysely needs.

We don't use the type from pg here to not have a dependency to it.

https://node-postgres.com/apis/pool

interface PostgresPool {
    connect(): Promise<PostgresPoolClient>;
    end(): Promise<void>;
}

Methods

Methods

  • Returns Promise<PostgresPoolClient>

  • Returns Promise<void>