MockTransactionContext class

A pass-through wrapper ensuring that operations inside a transaction block are routed back to the main MockDatabaseSpy instance.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(String sql, [List? arguments]) Future<int>
Executes non-selecting commands within the transaction.
override
get(String sql, [List? arguments]) Future<Map<String, dynamic>>
Fetches the first result within the transaction.
override
getAll(String sql, [List? arguments]) Future<List<Map<String, dynamic>>>
Executes a SELECT query within the transaction.
override
insert(String table, Map<String, dynamic> values) Future
Inserts a record within the transaction.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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