OdbcConnectionPool class
Constructors
- OdbcConnectionPool()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statistics → PoolStatistics
-
Returns current statistics snapshot of the connection pool.
Useful for monitoring and debugging pool behavior.
no setter
Methods
-
acquire(
) → Future< Result< DatabaseDriver> > -
closeAll(
) → Future< void> -
init(
DatabaseConfig config, {int maxSize = defaultMaxConnections, Duration? acquireTimeout}) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
DatabaseDriver driver) → void -
startHealthCheck(
{Duration interval = _PoolConstants.defaultHealthCheckInterval}) → void -
Starts periodic health check of all available connections.
Stale connections are automatically removed from the pool.
interval- Time between health checks (default: 5 minutes) -
stopHealthCheck(
) → void - Stops the periodic health check.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMaxConnections → const int