prorm API Reference
    Preparing search index...

    Class PooledConnection

    Pooled connection wrapper with health tracking

    Index
    id: string
    connection: any
    inUse: boolean = false
    timestamp: number
    metadata: Record<string, any> = {}
    healthCheckFailures: number = 0
    lastHealthCheck: number = 0
    lastValidation: number = 0
    isHealthy: boolean = true
    connectTimestamp: number
    • Check if the connection is idle for too long

      Parameters

      • timeout: number

      Returns boolean

    • Check if the connection has been idle longer than the given timeout

      Parameters

      • timeout: number

      Returns boolean

    • Increment health check failure counter

      Returns void

    • Reset health check failures on successful check

      Returns void