Engine class abstract
Prisma query engine interface.
Constructors
- Engine()
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
-
commitTransaction(
{required TransactionHeaders headers, required TransactionInfo info}) → Future< void> - Commits a transaction.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
{required String query, int? attempt, QueryEngineRequestHeaders? headers, TransactionInfo? transaction}) → Future - Requests a query execution.
-
rollbackTransaction(
{required TransactionHeaders headers, required TransactionInfo info}) → Future< void> - Rolls back a transaction.
-
start(
) → Future< void> - Starts the engine.
-
startTransaction(
{required TransactionHeaders headers, Duration timeout = const Duration(seconds: 5), Duration maxWait = const Duration(seconds: 2), IsolationLevel? isolationLevel}) → Future< TransactionInfo> - Starts a transaction.
-
stop(
) → Future< void> - Stops the engine.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited