module Orb::Relation

Included Modules

Defined in:

relation.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(rs : DB::ResultSet) #

[View source]

Class Method Detail

def self.from_rs(rs : DB::ResultSet) #

[View source]

Instance Method Detail

def to_h : Hash(String | Symbol, Orb::TYPES) #

[View source]

Macro Detail

macro attribute(name, type) #

[View source]
macro belongs_to(name, relation, **opts) #

[View source]
macro constructor #

[View source]
macro has_many(name, relation, **opts) #

[View source]
macro has_one(name, relation, **opts) #

[View source]
macro schema(table_name, &block) #

[View source]