BoundSql class final

Immutable SQL fragments interleaved with typed bound values.

A driver inserts its native placeholder between each pair of fragments. Drivers do not parse or rewrite fragment contents, so placeholder-like text inside strings and comments remains untouched.

Constructors

BoundSql.parts(List<String> fragments, List<SqlValue> values, {SqlStatementKind kind = SqlStatementKind.unknown, SqlDialect? dialect})
Creates SQL from fragments separated by values.
factory
BoundSql.raw(String trustedSql, {SqlStatementKind kind = SqlStatementKind.unknown, SqlDialect? dialect})
Creates a statement without bound parameters.
factory

Properties

dialect → SqlDialect?
Database dialect this statement was compiled for.
final
fragments → List<String>
Trusted SQL fragments in source order.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → SqlStatementKind
Declared protocol shape and transaction-safety category.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → List<SqlValue>
Bound values inserted between fragments, in source order.
final

Methods

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