class
CQL::StatementTemplate
- CQL::StatementTemplate
- Reference
- Object
Overview
A rendered SELECT whose value at value_index changes per run (for example the id of find).
Immutable, so one instance can be shared between fibers and threads.
Defined in:
prepared_select.crConstructors
Instance Method Summary
- #bind(value : DB::Any) : PreparedSelect
-
#renders?(schema : Schema, table : Symbol) : Bool
Whether this template was rendered for schema and table as their columns are now.
- #schema : Schema
Constructor Detail
def self.new(schema : Schema, table : Symbol, sql : String, params : Array(DB::Any), value_index : Int32)
#
Instance Method Detail
Whether this template was rendered for schema and table as their columns are now.