abstract class Granite::Query::Assembler::Base(Model)

Direct Known Subclasses

Defined in:

granite/query/assemblers/base.cr

Constant Summary

OPERATORS = {eq: "=", gteq: ">=", lteq: "<=", neq: "!=", ltgt: "<>", gt: ">", lt: "<", ngt: "!>", nlt: "!<", in: "IN", nin: "NOT IN", like: "LIKE", nlike: "NOT LIKE"}

Constructors

Instance Method Summary

Constructor Detail

def self.new(query : Builder(Model)) #

[View source]

Instance Method Detail

def add_aggregate_field(name : String) #

[View source]
abstract def add_parameter(value : Granite::Columns::Type) : String #

[View source]
def build_sql(&) #

[View source]
def count : Executor::MultiValue(Model, Int64) | Executor::Value(Model, Int64) #

[View source]
def default_order #

[View source]
def delete #

[View source]
def exists? : Executor::Value(Model, Bool) #

[View source]
def field_list #

[View source]
def first(n : Int32 = 1) : Executor::List(Model) #

[View source]
def group_by #

[View source]
def limit #

[View source]
def log(*stuff) #

[View source]
def numbered_parameters #

[View source]
def offset #

[View source]
def order(use_default_order = true) #

[View source]
def select #

[View source]
def sql_operator(operator : Symbol) : String #

[View source]
def table_name #

[View source]
def where #

[View source]