PostgreSqlExecutorPool class Null safety

A QueryExecutor that manages a pool of PostgreSQL connections.

Inheritance

Constructors

PostgreSqlExecutorPool(int size, PostgreSQLConnection connectionFactory(), {Logger? logger})

Properties

connectionFactory PostgreSQLConnection Function()
Creates a new PostgreSQLConnection, on demand.
final
dialect Dialect
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
logger Logger
An optional Logger to print information to.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size int
The maximum amount of concurrent connections.
final

Methods

close() Future
Closes all connections.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
query(String tableName, String query, Map<String, dynamic> substitutionValues, {String returningQuery = '', List<String> returningFields = const []}) Future<PostgreSQLResult>
Executes a single query.
override
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.
override

Operators

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