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 : 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 as_date #

[View source]
def between(low_value : V, high_value : V) #

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


[View source]
def extract(chrono_unit : Avram::ChronoUnits) #

[View source]
def extract(symbol : Symbol) #

[View source]
def extract_century #

[View source]
def extract_day #

[View source]
def extract_decade #

[View source]
def extract_dow #

[View source]
def extract_doy #

[View source]
def extract_epoch #

[View source]
def extract_hour #

[View source]
def extract_isodow #

[View source]
def extract_isoyear #

[View source]
def extract_julian #

[View source]
def extract_microseconds #

[View source]
def extract_millennium #

[View source]
def extract_milliseconds #

[View source]
def extract_minute #

[View source]
def extract_month #

[View source]
def extract_quarter #

[View source]
def extract_second #

[View source]
def extract_timezone #

[View source]
def extract_timezone_hour #

[View source]
def extract_timezone_minute #

[View source]
def extract_week #

[View source]
def extract_year #

[View source]