Skip to main content
Version: 5.3

PoolConfig

Index

Properties

optionalPromise

Promise?: any

optionalacquireTimeoutMillis

acquireTimeoutMillis?: number

optionalafterCreate

afterCreate?: (...a: unknown[]) => unknown

Type declaration

    • (...a: unknown[]): unknown
    • Parameters

      • rest...a: unknown[]

      Returns unknown

optionalautostart

autostart?: boolean

optionalevictionRunIntervalMillis

evictionRunIntervalMillis?: number

optionalfifo

fifo?: boolean

optionalidleTimeoutMillis

idleTimeoutMillis?: number

optionallog

log?: (message: string, logLevel: string) => void

Type declaration

    • (message: string, logLevel: string): void
    • Parameters

      • message: string
      • logLevel: string

      Returns void

optionalmax

max?: number

optionalmaxWaitingClients

maxWaitingClients?: number

optionalmin

min?: number

optionalname

name?: string

optionalnumTestsPerRun

numTestsPerRun?: number

optionalpriorityRange

priorityRange?: number

optionalreapIntervalMillis

reapIntervalMillis?: number

optionalrefreshIdle

refreshIdle?: boolean

optionalreturnToHead

returnToHead?: boolean

optionalsoftIdleTimeoutMillis

softIdleTimeoutMillis?: number

optionaltestOnBorrow

testOnBorrow?: boolean