PostgreSqlPoolDatabase class

A QueryExecutor that uses package:postgres_pool for connetions pooling.

Constructors

PostgreSqlPoolDatabase(PgPool _pool, {Logger? logger})

Properties

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
pool → PgPool
The underlying connection pooling.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes all the connections in the pool.
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>
Run query.
toString() String
A string representation of this object.
inherited
transaction<T>(FutureOr<T> f(Database)) Future<T>
Run query in a transaction.

Operators

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