PostgreSqlDatabasePool class
A QueryExecutor
that manages a pool of PostgreSQL connections.
Constructors
- PostgreSqlDatabasePool(int size, PostgreSQLConnection connectionFactory(), {Logger? logger})
Properties
- connectionFactory → PostgreSQLConnection Function()
-
Creates a new
PostgreSQLConnection
, on demand.final - databaseType → DatabaseType
-
finalinherited
- databaseVersion → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger ↔ Logger
-
An optional
Logger
to print information to.getter/setter pair - 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< void> - Closes all connections.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String sql, Map< String, dynamic> substitutionValues, {List<String> returningFields = const [], String? tableName, Map<String, QueryHint> hints = const {}}) → Future<DbQueryResult> - Executes a single query.
-
toString(
) → String -
A string representation of this object.
inherited
-
transaction<
T> (FutureOr< T> f(Database)) → Future<T> -
Enters a database transaction, performing the actions within,
and returning the results of
f
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited