PoolConfig class
Connection pool configuration
Constructors
- PoolConfig({int poolMin = 0, int poolMax = 4, int poolIncrement = 1, int poolTimeout = 60, int poolPingInterval = 60, int queueMax = 500, int queueTimeout = 60000, int stmtCacheSize = 30, String? connectionClass})
-
const
- PoolConfig.highTraffic()
-
Create configuration for high-traffic scenarios
factory
- PoolConfig.lowTraffic()
-
Create configuration for low-traffic scenarios
factory
Properties
- connectionClass → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- poolIncrement → int
-
final
- poolMax → int
-
final
- poolMin → int
-
final
- poolPingInterval → int
-
final
- poolTimeout → int
-
final
- queueMax → int
-
final
- queueTimeout → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stmtCacheSize → int
-
final
Methods
-
copyWith(
{int? poolMin, int? poolMax, int? poolIncrement, int? poolTimeout, int? poolPingInterval, int? queueMax, int? queueTimeout, int? stmtCacheSize, String? connectionClass}) → PoolConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultConfig → const PoolConfig
- Default pool configuration