struct
CQL::PreparedSelect
- CQL::PreparedSelect
- Struct
- Value
- Object
Overview
A SELECT whose SQL text was rendered once and is run again with new bound values. It goes through the same execution path as any query (telemetry, monitor, request cache, transactions).
Included Modules
Defined in:
prepared_select.crConstructors
Instance Method Summary
- #build : Expression::Statement
- #schema : Schema
-
#to_sql(gen : Expression::Generator | Nil = nil)
The SQL text and its bound parameters, rendered for the schema's dialect (or by the given generator).
Instance methods inherited from module CQL::Executable
all(as kind)
all,
all!(as kind)
all!,
build : Expression::Statement
build,
each(as kind : U.class, & : U -> ) : Nil forall U
each,
explain(analyze : Bool = false) : String
explain,
get(as kind)
get,
get!(as kind)
get!,
returns_rows?(count : Int32) : Bool
returns_rows?,
to_sql(gen : Expression::Generator | Nil = nil)to_sql(for adapter : Adapter) to_sql
Instance methods inherited from module CQL::Pinnable
executor : Executor
executor,
schema : Schema
schema,
using(connection : DB::Connection) : selfusing(executor : Executor) : self using
Constructor Detail
Instance Method Detail
def to_sql(gen : Expression::Generator | Nil = nil)
#
Description copied from module CQL::Executable
The SQL text and its bound parameters, rendered for the schema's dialect (or by the given generator).