module

Granite::Columns

Instance methods

content_values
Source
from_rs(result : DB::ResultSet) : Nil

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

Source
primary_key_value
Source
read_attribute(attribute_name : Symbol | String) : Type
Source
set_attributes(hash : Hash(String | Symbol, T)) : self forall T
Source
to_h
Source

Macros

column(decl, **options)

Defines a column decl with the given options.

Source
timestamps

include created_at and updated_at that will automatically be updated

Source

Nested types