PostgreSQLExecutionContext class abstract

Implementers
Available extensions

Properties

hashCode → int
The hash code for this object.
no setterinherited
queueSize → int
Returns this context queue size
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelTransaction({String? reason}) → void
Cancels a transaction on this context.
copyFrom(String sql, Stream<List<int>> data, {dynamic substitutionValues, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign, int? timeoutInSeconds}) → Future<int>

Available on PostgreSQLExecutionContext, provided by the PgCopyExecutionContext extension

copyRows(String table, List<String> columns, Iterable<List<Object?>> rows, {String? schema, int? timeoutInSeconds}) → Future<int>

Available on PostgreSQLExecutionContext, provided by the PgCopyExecutionContext extension

copyTo(String sql, void onData(Uint8List data), {dynamic substitutionValues, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign, int? timeoutInSeconds}) → Future<int>

Available on PostgreSQLExecutionContext, provided by the PgCopyExecutionContext extension

execute(String fmtString, {dynamic substitutionValues, int? timeoutInSeconds, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign}) → Future<int>
Executes a query on this context.
mappedResultsQuery(String fmtString, {dynamic substitutionValues, bool? allowReuse, int? timeoutInSeconds, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign}) → Future<List<Map<String, Map<String, dynamic>>>>
Executes a query on this connection and returns each row as a Map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String fmtString, {dynamic substitutionValues, bool? allowReuse, int? timeoutInSeconds, bool? useSimpleQueryProtocol, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign}) → Future<PostgreSQLResult>
Executes a query on this context.
queryAsMap(String fmtString, {dynamic substitutionValues, bool? allowReuse, int? timeoutInSeconds, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign}) → Future<List<Map<String, dynamic>>>
Executes a query on this connection and returns each row as a Map.
queryStream(String fmtString, {dynamic substitutionValues, PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign, int fetchSize = 1000, int? timeoutInSeconds}) → Stream<PostgreSQLResultRow>

Available on PostgreSQLExecutionContext, provided by the PgQueryStreamExecutionContext extension

savepoint<T>(Future<T> block(PostgreSQLExecutionContext ctx)) → Future<T>

Available on PostgreSQLExecutionContext, provided by the PgSavepointExecutionContext extension

Executa block dentro de um SAVEPOINT da transação atual.
toString() → String
A string representation of this object.
inherited

Operators

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