MssqlStatement class
A compiled statement: the SQL text and the values bound to it.
Compilation is separate from execution so that generated SQL can be asserted in a test with no server, logged before it runs, and compiled for a chosen dialect rather than for whatever the connection happens to be.
- Available extensions
- Annotations
-
- @immutable
Constructors
-
MssqlStatement(String sql, Map<
String, Object?> parameters, {bool containsRawSql = false}) - MssqlStatement.fromAllocator(String sql, MssqlParameterAllocator allocator)
- Builds a statement from an allocator, carrying over what it observed.
Properties
- containsRawSql → bool
-
Whether any part of sql came from a
rawfragment.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
parameters
→ Map<
String, Object?> -
The values to bind, keyed by parameter name without the leading
@.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sql → String
-
The SQL text, with every caller-supplied value replaced by a parameter.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
MssqlSession session, {Duration? timeout}) → Future< int> -
Available on MssqlStatement, provided by the MssqlStatementExecution extension
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited