Engine class abstract

Implementers

Constructors

Engine({required String schema, required Document dmmf, required Map<String, Datasource> datasources, required Future<PrismaEnvironment> environment, required PrismaLogEmitter logEmitter})
const

Properties

datasources Map<String, Datasource>
Data sources.
final
dmmf Document
Prisma schema as Document.
final
environment Future<PrismaEnvironment>
Environment variables.
final
hashCode int
The hash code for this object.
no setterinherited
logEmitter PrismaLogEmitter
Prisma log emitter
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema String
Prisma schema as SDL string.
final

Methods

commitTransaction({required TransactionHeaders headers, required TransactionInfo info}) Future<void>
Commit a transaction.
getConfig() FutureOr<GetConfigResult>
Get Current configuration.
getDmmf() FutureOr<Document>
Get Current DMMF.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({required String query, QueryEngineRequestHeaders? headers}) Future<QueryEngineResult>
Request a query execution.
rollbackTransaction({required TransactionHeaders headers, required TransactionInfo info}) Future<void>
Rollback a transaction.
start() Future<void>
Start the engine.
startTransaction({required TransactionHeaders headers, TransactionOptions options = const TransactionOptions()}) Future<TransactionInfo>
Start a transaction.
stop() Future<void>
Stop the engine.
toString() String
A string representation of this object.
inherited
version({bool forceRun = false}) Future<String>
Get current engine version.

Operators

operator ==(Object other) bool
The equality operator.
inherited