TransactionExecutor class
Query executor for use within transactions.
- Implemented types
Constructors
- TransactionExecutor({required Transaction transaction, required SqlCompiler compiler, required SqlDriverAdapter adapter})
Properties
- adapter → SqlDriverAdapter
-
The database adapter.
no setteroverride
- compiler → SqlCompiler
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transaction → Transaction
-
final
Methods
-
executeCount(
JsonQuery query) → Future< int> -
Execute a count query.
override
-
executeMutation(
JsonQuery query) → Future< int> -
Execute a mutation within the transaction.
override
-
executeQuery(
JsonQuery query) → Future< SqlResultSet> - Execute a query within the transaction.
-
executeQueryAsMaps(
JsonQuery query) → Future< List< Map< >String, dynamic> > -
Execute a query and deserialize results to maps.
override
-
executeQueryAsSingleMap(
JsonQuery query) → Future< Map< String, dynamic> ?> -
Execute a query expecting a single result.
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