SqlBuilder class final

Builds and inspects typed SQL without constructing a driver or a database.

Inheritance

Constructors

SqlBuilder(SqlDialect dialect)
Builds SQL using the dialect's offline defaults.
SqlBuilder.withCapabilities(Capabilities capabilities)
Builds SQL using an explicitly supplied engine capability profile.
const

Properties

capabilities Capabilities
The selected engine's limits and supported SQL features.
final
dialect SqlDialect
The SQL dialect selected by the context's capabilities.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
inSession bool
Whether this view borrows one leased connection.
no setterinherited
inTransaction bool
Whether this view borrows an active transaction.
no setterinherited
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.
inherited
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.
inherited
run<R>(Future<R> action(SqlConnection), {AcquisitionOptions acquire = const AcquisitionOptions()}) Future<R>
Executes work on a leased connection, or rejects an unbound context.
inherited
table<R, F extends Fields>(Table<R, F> definition) TableSet<R, F>
Binds a manual or generated table definition to this context.
inherited
toString() String
A string representation of this object.
inherited

Operators

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