ConnectionPool class

Connection pool for managing database connections

Constructors

ConnectionPool(String _connectionString, {int maxConnections = 5})

Properties

activeConnectionCount → int
Gets the number of active connections
no setter
availableConnectionCount → int
Gets the number of available connections
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Closes all connections in the pool
getConnection() → Future<DatabaseConnection>
Gets a connection from the pool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseConnection(DatabaseConnection connection) → Future<void>
Returns a connection to the pool
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited