@earth-app/collegedb
    Preparing search index...

    Interface LeasedConnection<C>

    A connection leased for the duration of one batch, and the hook that returns it to wherever it came from.

    1.4.0

    interface LeasedConnection<C> {
        client: C;
        release: () => void | Promise<void>;
    }

    Type Parameters

    • C

      Client contract the leased connection satisfies

    Index
    client: C

    The dedicated connection; every statement in the batch runs through it

    release: () => void | Promise<void>

    Returns the connection to its pool. Called once, including on failure.