class Time::Lucky::Criteria(T, V)

Included Modules

Defined in:

avram/charms/time_extensions.cr

Constructors

Instance Method Summary

Instance methods inherited from class Avram::Criteria(T, V)

asc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T asc_order, column column, column=(column : String | Symbol) column=, desc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T desc_order, eq(value) : T eq, gt(value) : T gt, gte(value) : T gte, in(values) : T in, is_nil : T is_nil, is_not_nil : T is_not_nil, lt(value) : T lt, lte(value) : T lte, nilable_eq(value) : T nilable_eq, not : Avram::Criteria not, rows rows, rows=(rows : T) rows=, select_average : Float64 | Nil select_average, select_average! : Float64 select_average!, select_max : V | Nil select_max, select_min : V | Nil select_min, select_sum select_sum

Constructor methods inherited from class Avram::Criteria(T, V)

new(rows : T, column : Symbol | String) new

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 between(low_value : V, high_value : V) #

WHERE @column >= low_value AND @column <= high_value


[View source]