PostgreSqlExecutor class

A QueryExecutor that queries a PostgreSQL database.

Constructors

PostgreSqlExecutor(DBConnectionInfo connectionInfo, {Logger? logger, PostgreSQLExecutionContext? connection})

Properties

connection ↔ PostgreSQLExecutionContext?
getter/setter pair
connectionInfo DBConnectionInfo
getter/setter pair
connections List<PostgreSQLExecutionContext>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
logger → Logger?
An optional Logger to print information to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemesString String
no setter

Methods

close() Future<void>
Closes the connection.
commit() Future<void>
execute(String query, {Map<String, dynamic>? substitutionValues}) Future<int>
getAsMap(String query, {Map<String, dynamic>? substitutionValues}) Future<List<Map<String, dynamic>>>
getAsMapWithMeta(String query, {Map<String, dynamic>? substitutionValues}) Future<List<Map<String, Map<String, dynamic>>>>
isConnect() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
query(String query, {Map<String, dynamic>? substitutionValues, List<String?>? returningFields}) Future<List<List>>
Executes a single query.
reconnect() Future<void>
reconnectIfNecessary() Future<bool>
rollback() Future<void>
simpleTransaction(Future f(QueryExecutor)) Future
startTransaction() Future<QueryExecutor>
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