module Granite::Columns

Direct including types

Defined in:

granite/columns.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def content_values : Array(Granite::Columns::Type) #

[View source]
def from_rs(result : DB::ResultSet) : Nil #

Consumes the result set to set self's property values.


[View source]
def primary_key_value #

[View source]
def read_attribute(attribute_name : Symbol | String) : Type #

[View source]
def set_attributes(hash : Hash(String | Symbol, Type)) : self #

[View source]
def to_h #

[View source]

Macro Detail

macro column(decl, **options) #

Defines a column decl with the given options.


[View source]
macro timestamps #

include created_at and updated_at that will automatically be updated


[View source]