SqlTemplate class final
Fixed SQL with :named bound values. Quoted text, identifiers and comments are preserved. This tokenizer is not a SQL parser; use database query checks.
Constructors
- SqlTemplate(String source, {required SqlDialect dialect})
-
Tokenizes a trusted SELECT, WITH, or VALUES source without database access.
factory
Properties
- dialect → SqlDialect
-
Database engine whose quoting and parameter rules this template uses.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
parameters
→ Set<
String> -
Immutable names of all required bound parameters, excluding repeated uses.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compile(
Capabilities capabilities, Map< String, Expr< arguments) → SqlCommandObject?> > - Compiles SQL and bound parameters without executing the template.
-
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