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

Defined in:

avram/charms/enum_extensions.cr

Constructors

Instance Method Summary

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

abs abs, between(low_value : V, high_value : V) between, includes(value) : T includes, select_sum : Int64 | Nil select_sum, select_sum! : Int64 select_sum!

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

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

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

asc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T asc_order, column : Symbol | String column, column=(column : Symbol | String) column=, desc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T desc_order, eq(value) : T eq, gt(value) : T gt, gte(value) : T gte, have_any(values) : T have_any, 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, random_order : T random_order, rows : T rows, rows=(rows : T) rows=, select_average : Float64 | Nil select_average, select_average! : Float64 select_average!, select_max select_max, select_min select_min, select_sum select_sum

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

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

Macros inherited from class Avram::Criteria(T, V)

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

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 select_max : V | Nil #

[View source]
def select_min : V | Nil #

[View source]