class CQL::StatementTemplate

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(schema : Schema, table : Symbol, sql : String, params : Array(DB::Any), value_index : Int32) #

[View source]

Instance Method Detail

def bind(value : DB::Any) : PreparedSelect #

[View source]
def renders?(schema : Schema, table : Symbol) : Bool #

Whether this template was rendered for schema and table as their columns are now.


[View source]
def schema : Schema #

[View source]