DatabaseConnectionPool class
Connection pool for managing multiple database connections
Constructors
- DatabaseConnectionPool(DatabaseConfig config, {int maxConnections = 10})
Properties
- config → DatabaseConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConnections → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stats
→ Map<
String, int> -
Get pool statistics
no setter
Methods
-
close(
) → Future< void> - Close all connections in the pool
-
getConnection(
) → Future< DatabaseConnection> - Get a connection from the pool
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseConnection(
DatabaseConnection connection) → Future< void> - Release a connection back to the pool
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited