class Focus::CachedRow

Defined in:

focus/cached_row.cr

Constant Summary

TIME_FORMATS = [Time::Format::ISO_8601_DATE_TIME, Time::Format::RFC_2822, Time::Format::RFC_3339, Time::Format.new("%Y-%m-%dT%H:%M:%S", Time::Location::UTC), Time::Format.new("%Y-%m-%dT%H:%M", Time::Location::UTC), Time::Format::HTTP_DATE, Time::Format::ISO_8601_DATE, Time::Format::ISO_8601_TIME]

Taken from https://github.com/luckyframework/avram/blob/f0148f4274798124f5457c85fa35f7ba985636b6/src/avram/charms/time_extensions.cr#L10-L23

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(columns : Array(Focus::BaseCachedColumn)) #

[View source]

Class Method Detail

def self.build(result_set : DB::ResultSet) : Focus::CachedRow #

[View source]

Instance Method Detail

def columns : Array(Focus::BaseCachedColumn) #

[View source]
def find_column(column_label : String) : Int32 #

[View source]
def get(column_label : String, type : T.class) : T forall T #

[View source]
def get(column_index : Int32, type : T.class) : T forall T #

[View source]
def get(column : Column(C)) : C forall C #

[View source]
def get(column : ColumnDeclaringExpression(C)) : C forall C #

[View source]
def get?(column_label : String, type : T.class) : T | Nil forall T #

[View source]
def get?(column_index : Int32, type : Int16.class) : Int16 | Nil #

[View source]
def get?(column_index : Int32, type : Int32.class) : Int32 | Nil #

[View source]
def get?(column_index : Int32, type : Int64.class) : Int64 | Nil #

[View source]
def get?(column_index : Int32, type : Float32.class) : Float32 | Nil #

[View source]
def get?(column_index : Int32, type : Float64.class) : Float64 | Nil #

[View source]
def get?(column_index : Int32, type : String.class) : String | Nil #

[View source]
def get?(column_index : Int32, type : Bool.class) : Bool | Nil #

[View source]
def get?(column_index : Int32, type : Time.class) : Time | Nil #

[View source]
def get?(column : Column(C)) : C | Nil forall C #

[View source]
def get?(column : ColumnDeclaringExpression(C)) : C | Nil forall C #

[View source]