module Sandstone::ORM::Table

Direct including types

Defined in:

sandstone/table.cr

Macro Summary

Macro Detail

macro __process_table #

[View source]
macro adapter(name) #

specify the database adapter you will be using for this model. mysql, pg, sqlite, etc.


[View source]
macro primary(decl) #

specify the primary key column and type


[View source]
macro set_foreign_key(column) #

[View source]
macro set_order_column(column) #

[View source]
macro table_name(name) #

specify the table name to use otherwise it will use the model's name


[View source]