DataProxyEngine class
Prisma Data Proxy Engine.
The Data Proxy Engine is a wrapper around the Prisma Data Proxy.
- Inheritance
-
- Object
- UniversalEngine
- DataProxyEngine
- Implemented types
Constructors
-
DataProxyEngine({required Uri endpoint, required Logger logger, Map<
String, String> ? headers, required String schema, required String hash, required String version}) -
Create a new instance of DataProxyEngine.
const
Properties
- endpoint → Uri
-
Resolve the Data Proxy endpoint.
no setteroverride
- hash → String
-
Prisma schema origin bytes hash (SHA-256).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Resolve the Data Proxy headers.
no setteroverride
- logger → Logger
-
Prisma Emitter.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
Base64 encoded schema.
final
- version → String
-
Remote prisma client version.
final
Methods
-
commitTransaction(
{required TransactionInfo info, TransactionHeaders? headers}) → Future< void> -
Commits a transaction.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
{required String query, QueryEngineRequestHeaders? headers, TransactionInfo? transaction}) → Future< GraphQLResult> -
Requests a query execution.
override
-
resolveCommitTransactionEndpoint(
TransactionInfo info) → Uri -
Resolve the commit transaction endpoint.
override
-
resolveRequestEndpoint(
) → Uri -
Resolve the request endpoint.
inherited
-
resolveRollbackTransactionEndpoint(
TransactionInfo info) → Uri -
Resolve the rollback transaction endpoint.
override
-
resolveStartTransactionEndpoint(
) → Uri -
Resolve start transaction endpoint.
inherited
-
rollbackTransaction(
{required TransactionInfo info, TransactionHeaders? headers}) → Future< void> -
Rolls back a transaction.
inherited
-
start(
) → Future< void> -
Starts the engine.
inherited
-
startTransaction(
{TransactionHeaders? headers, Duration timeout = const Duration(seconds: 5), Duration maxWait = const Duration(seconds: 2), TransactionIsolationLevel? isolationLevel}) → Future< TransactionInfo> -
Starts a transaction.
inherited
-
stop(
) → Future< void> -
Stops the engine.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryThrowDataProxyErrors(
Map< String, dynamic> json) → void - Try throw a PrismaRequestException from a GraphQLResult.
-
updateSchema(
) → Future< void> - Update schema.
-
withRetry<
T> (Future< T> fn(void logger(Uri uri)), {required String gerund, FutureOr<bool> retryIf(Exception)?, FutureOr<void> onRetry(Exception)?}) → Future<T> -
Retry a request.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited