QueryExecutor class
Executes Prisma queries against a database adapter.
- Implemented types
Constructors
- QueryExecutor({required SqlDriverAdapter adapter, SqlCompiler? compiler, QueryLogger? logger})
Properties
- adapter → SqlDriverAdapter
-
The database adapter.
final
- compiler → SqlCompiler
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger → QueryLogger?
-
Optional query logger for debugging and monitoring.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Close the adapter connection.
-
executeCount(
JsonQuery query) → Future< int> -
Execute a count query.
override
-
executeInTransaction<
T> (Future< T> callback(TransactionExecutor), {IsolationLevel? isolationLevel}) → Future<T> - Execute within a transaction.
-
executeMutation(
JsonQuery query) → Future< int> -
Execute a mutation (CREATE, UPDATE, DELETE) and return affected rows.
override
-
executeMutationRaw(
String sql, List parameters) → Future< int> - Execute raw SQL mutation (INSERT/UPDATE/DELETE) and return affected rows.
-
executeQuery(
JsonQuery query) → Future< SqlResultSet> - Execute a query and return raw results.
-
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
-
executeRaw(
String sql, List parameters) → Future< List< Map< >String, dynamic> > - Execute raw SQL and return results.
-
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