class CQL::CompoundQuery

Overview

Two statements combined with UNION / INTERSECT / EXCEPT, executed like any query. ORDER BY / LIMIT set on an operand stay on that operand; ordering or limiting the combined result is not supported yet.

Included Modules

Defined in:

compound_query.cr

Constructors

Instance Method Summary

Instance methods inherited from module CQL::SetOperations

except(other : Executable) : CompoundQuery except, intersect(other : Executable) : CompoundQuery intersect, union(other : Executable) : CompoundQuery union, union_all(other : Executable) : CompoundQuery union_all

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(left : Executable, operator : Expression::SetOperator, right : Executable) #

[View source]

Instance Method Detail

def build : Expression::SetOperation #

[View source]
def executor : Executor #

[View source]
def left : Executable #

[View source]
def operator : Expression::SetOperator #

[View source]
def right : Executable #

[View source]
def schema : Schema #

[View source]