DataProxyEngine class
Prisma data proxy engine.
Constructors
-
DataProxyEngine({required PrismaLogEmitter logEmitter, required String schema, required Document dmmf, required Map<
String, Datasource> datasources, required Future<PrismaEnvironment> environment, required Iterable<Datasource> intenalDatasources})
Properties
-
connectionAddress
→ Future<
Uri> -
Returns connection url.
no setter
-
datasources
→ Map<
String, Datasource> -
Data sources.
finalinherited
- dmmf → Document
-
Prisma schema as Document.
finalinherited
-
environment
→ Future<
PrismaEnvironment> -
Environment variables.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
intenalDatasources
→ Iterable<
Datasource> -
Internal datasources.
final
- logEmitter → PrismaLogEmitter
-
Prisma log emitter
finalinherited
-
remoteClientVersion
→ Future<
String> -
Return data proxy remote client version.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → String
-
Returns base64 encoded string of the schema.
no setteroverride
- schemaHash → String
-
Returns schame sha256 hash.
no setter
-
url
→ Future<
Uri> -
Return request url.
no setter
Methods
-
commitTransaction(
{required TransactionHeaders headers, required TransactionInfo info}) → Future< void> -
Commit a transaction.
override
-
getConfig(
) → FutureOr< GetConfigResult> -
Get Current configuration.
override
-
getDmmf(
) → FutureOr< Document> -
Get Current DMMF.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseConnectionAddress(
String url) → Uri - Paser connection address.
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited