class Avram::Criteria(T, V)

Direct Known Subclasses

Defined in:

avram/criteria.cr

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Object

blank_for_validates_required? : Bool blank_for_validates_required?

Constructor Detail

def self.new(rows : T, column : Symbol | String) #

[View source]

Instance Method Detail

def asc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T #

[View source]
def column : Symbol | String #

[View source]
def column=(column : Symbol | String) #

[View source]
def desc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T #

[View source]
def eq(value) : T #

[View source]
def gt(value) : T #

[View source]
def gte(value) : T #

[View source]
def in(values) : T #

[View source]
def is_nil : T #

[View source]
def is_not_nil : T #

[View source]
def lt(value) : T #

[View source]
def lte(value) : T #

[View source]
def nilable_eq(value) : T #

[View source]
def not : Avram::Criteria #

[View source]
def random_order : T #

[View source]
def rows : T #

[View source]
def rows=(rows : T) #

[View source]
def select_average : Float64 | Nil #

[View source]
def select_average! : Float64 #

[View source]
def select_max : V | Nil #

[View source]
def select_min : V | Nil #

[View source]
def select_sum #

[View source]

Macro Detail

macro define_function_criteria(name, output_type = V, sql_name = nil) #

[View source]