OptionalevictTime in milliseconds to evict idle connections
OptionalonCallback when a connection is acquired
OptionalonCallback when a connection is released
OptionalonCallback when a connection is destroyed
OptionalonCallback on pool error
OptionalhealthHealth check configuration
OptionalvalidateEnable connection validation on borrow
OptionalvalidationTimeout for connection validation in milliseconds
OptionalvalidationCustom validation query (overrides healthCheck.query)
OptionalenableEnable reconnection for failed connections
OptionalmaxMaximum number of reconnection attempts
OptionalreconnectInterval between reconnection attempts in milliseconds
OptionalmaxMaximum number of connections in the pool
OptionalminMinimum number of idle connections to maintain
OptionalacquireMaximum time in milliseconds to wait for a connection to become available
OptionalidleMaximum time in milliseconds that a connection can be idle before being evicted
OptionalhandleWhether to automatically handle disconnects
OptionalonCallback when a connection is acquired from the pool
OptionalonCallback when a connection is released back to the pool
OptionalenableEnable pool event emission (for monitoring/debugging)
OptionallogLog pool operations (acquire, release, etc.)
Connection-pool sizing and lifecycle. A pooled connection is shared, so session state set on one query is not guaranteed to be visible to the next — use
onConnectfor settings that must apply to every connection.