class Avram::Criteria(T, V)

Direct Known Subclasses

Defined in:

avram/criteria.cr

Constructors

Instance Method 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 #

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

[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 rows #

[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]