BinaryEngine class
Constructors
-
BinaryEngine({required Document dmmf, required String schema, required Map<
String, Datasource> datasources, required Future<PrismaEnvironment> environment, required PrismaLogEmitter logEmitter, bool allowTriggerPanic = false, FutureOr<String?> ? executable, String? workingDirectory}) -
const
Properties
- allowTriggerPanic → bool
-
Allow trigger panic.
final
-
datasources
→ Map<
String, Datasource> -
Data sources.
finalinherited
- dmmf → Document
-
Prisma schema as Document.
finalinherited
-
environment
→ Future<
PrismaEnvironment> -
Environment variables.
finalinherited
-
executable
→ FutureOr<
String?> ? -
The binary engine executable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logEmitter → PrismaLogEmitter
-
Prisma log emitter
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
Prisma schema as SDL string.
finalinherited
- workingDirectory → String?
-
Binary engine working directory.
final
Methods
-
commitTransaction(
{required TransactionHeaders headers, required TransactionInfo info}) → Future< void> -
Commit a transaction.
override
-
getConfig(
{bool forceRun = false}) → FutureOr< GetConfigResult> -
Get Current configuration.
override
-
getDmmf(
{bool forceRun = false}) → FutureOr< Document> -
Get Current DMMF.
override
-
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.
override
-
rollbackTransaction(
{required TransactionHeaders headers, required TransactionInfo info}) → Future< void> -
Rollback a transaction.
override
-
start(
) → Future< void> -
Start the engine.
override
-
startTransaction(
{required TransactionHeaders headers, TransactionOptions options = const TransactionOptions()}) → Future< TransactionInfo> -
Start a transaction.
override
-
stop(
) → Future< void> -
Stop the engine.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
version(
{bool forceRun = false}) → Future< String> -
Get current engine version.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited