ExecutionOptions class final

Per-operation connection acquisition and statement execution controls.

Acquisition and statement deadlines are independent. A deadline expiring after submission does not establish whether a write committed or was rolled back.

Constructors

ExecutionOptions({CancellationToken? cancellation, Duration? timeout, Duration? acquireTimeout})
Creates optional controls; omitted deadlines use runtime or driver defaults.
const

Properties

acquireTimeout Duration?
Time allowed to acquire a lease. Independent of statement timeout.
final
acquisition AcquisitionOptions
Connection-wait controls derived without including the statement deadline.
no setter
cancellation CancellationToken?
Optional cancellation request shared by acquisition and execution.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
Limit for each database statement/fetch, not time spent consuming rows.
final

Methods

check() → void
Rejects non-positive deadlines and cancellation requested before execution.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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