struct CQL::PreparedSelect

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

Constructors

Instance Method Summary

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) : self
using(executor : Executor) : self
using

Constructor Detail

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

[View source]

Instance Method Detail

def build : Expression::Statement #

[View source]
def schema : Schema #

[View source]
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).


[View source]