PostgreSqlExecutorPool class
A QueryExecutor
that manages a pool of PostgreSQL connections.
Constructors
- PostgreSqlExecutorPool(int size, DBConnectionInfo connectionInfo, {Logger? logger})
Properties
- connection ↔ PostgreSqlExecutor?
-
getter/setter pairinherited
- connectionInfo ↔ DBConnectionInfo
-
getter/setter pair
-
connections
→ List<
PostgreSqlExecutor> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → Logger?
-
Creates a new
PostgreSQLConnection
, on demand.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
The maximum amount of concurrent connections.
final
Methods
-
close(
) → Future - Closes all connections.
-
commit(
) → Future< void> -
inherited
-
execute(
String query, {Map< String, dynamic> ? substitutionValues}) → Future<int> -
getAsMap(
String query, {Map< String, dynamic> ? substitutionValues, dynamic returningFields}) → Future<List< Map< >String, dynamic> > -
getAsMapWithMeta(
String query, {Map< String, dynamic> ? substitutionValues, List<String> ? returningFields}) → Future<List< Map< >String, Map< >String, dynamic> > -
isConnect(
) → Future< bool> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
) → Future< void> -
inherited
-
query(
String query, {Map< String, dynamic> ? substitutionValues, List<String?> ? returningFields}) → Future<List< List> > - Executes a single query.
-
reconnectIfNecessary(
) → Future -
rollback(
) → Future< void> -
inherited
-
startTransaction(
) → Future< QueryExecutor> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transaction<
T> (FutureOr< T> f(QueryExecutor)) → Future<T?> -
Enters a database transaction, performing the actions within,
and returning the results of
f
. -
transaction2(
Future queryBlock(QueryExecutor), {int? commitTimeoutInSeconds}) → Future
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited