BaseExecutor class abstract
Abstract base class for query execution.
This interface is implemented by both QueryExecutor (for normal operations) and TransactionExecutor (for transaction operations), allowing delegates to work with either one.
- Implementers
Constructors
Properties
- adapter → SqlDriverAdapter
-
The database adapter.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Close the underlying connection. No-op when inside a transaction (a transaction does not own the adapter's connection lifecycle).
-
executeCount(
JsonQuery query) → Future< int> - Execute a count query.
-
executeMutation(
JsonQuery query) → Future< int> - Execute a mutation (CREATE, UPDATE, DELETE) and return affected rows.
-
executeMutationWithRelationsReturning(
JsonQuery query) → Future< Map< String, dynamic> ?> - Run a create/update whose data contains nested relation operations (connect/disconnect/create), atomically, and return the RETURNING row. On a root executor this opens a transaction; inside a transaction it reuses the ambient one.
-
executeQueryAsMaps(
JsonQuery query) → Future< List< Map< >String, dynamic> > - Execute a query and deserialize results to maps.
-
executeQueryAsSingleMap(
JsonQuery query) → Future< Map< String, dynamic> ?> - Execute a query expecting a single result.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runTransaction<
T> (Future< T> callback(BaseExecutor), {IsolationLevel? isolationLevel}) → Future<T> -
Run
callbackinside a transaction. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited