class

Avram::Criteria(T, V)

Inherits Reference < Object

Constructors

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

Instance methods

asc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T
Source
column
Source
column=(column : Symbol | String)
Source
desc_order(null_sorting : Avram::OrderBy::NullSorting = :default) : T
Source
eq(value) : T
Source
gt(value) : T
Source
gte(value) : T
Source
have_any(values) : T
Source
in(values) : T
Source
is_nil

ameba:disable Naming/PredicateName

Source
is_not_nil

ameba:disable Naming/PredicateName

Source
lt(value) : T
Source
lte(value) : T
Source
nilable_eq(value) : T
Source
random_order
Source
rows
Source
rows=(rows : T)
Source
select_average
Source
select_average!
Source
select_max
Source
select_min
Source
select_sum
Source

Macros

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