prorm API Reference
    Preparing search index...

    Interface PoolEvents

    Pool events interface

    interface PoolEvents {
        acquire: (connection: any) => void;
        release: (connection: any) => void;
        destroy: (connection: any) => void;
        create: (connection: any) => void;
        remove: (connection: any) => void;
        error: (error: Error) => void;
        enqueue: () => void;
        dequeue: () => void;
        timeout: (connection: any) => void;
        "health-check": (connection: any, healthy: boolean) => void;
        "connection-invalid": (connection: any) => void;
        reconnect: (connection: any, success: boolean) => void;
    }
    Index
    acquire: (connection: any) => void
    release: (connection: any) => void
    destroy: (connection: any) => void
    create: (connection: any) => void
    remove: (connection: any) => void
    error: (error: Error) => void
    enqueue: () => void
    dequeue: () => void
    timeout: (connection: any) => void
    "health-check": (connection: any, healthy: boolean) => void
    "connection-invalid": (connection: any) => void
    reconnect: (connection: any, success: boolean) => void