QueryContext class abstract

Capabilities and an optional execution binding for typed query descriptions. The SQL layer knows no connection pool, platform adapter or runtime session.

Implementers

Constructors

QueryContext()
Creates a context for compiling or executing query descriptions.
const

Properties

capabilities Capabilities
The selected engine's limits and supported SQL features.
no setter
dialect SqlDialect
The SQL dialect selected by the context's capabilities.
no setter
hashCode int
The hash code for this object.
no setterinherited
inSession bool
Whether this view borrows one leased connection.
no setter
inTransaction bool
Whether this view borrows an active transaction.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(SqlCommand command, {ExecutionOptions options = const ExecutionOptions(), Iterable<TableSchema> changedTables = const []}) Future<SqlResult>
Executes bound SQL and declares tables affected by raw writes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSchema(Iterable<TableSchema> tables) → void
Registers foreign-key effects for change subscriptions.
run<R>(Future<R> action(SqlConnection), {AcquisitionOptions acquire = const AcquisitionOptions()}) Future<R>
Executes work on a leased connection, or rejects an unbound context.
table<R, F extends Fields>(Table<R, F> definition) TableSet<R, F>
Binds a manual or generated table definition to this context.
toString() String
A string representation of this object.
inherited

Operators

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