module Clear::Model::Factory

Defined in:

clear/model/factories/base.cr
clear/model/factories/polymorphic_factory.cr
clear/model/factories/simple_factory.cr
clear/model/factory.cr

Constant Summary

FACTORIES = {"Clear::Reflection::Column" => ::Clear::Model::Factory::SimpleFactory(Clear::Reflection::Column).new, "Clear::Reflection::Table" => ::Clear::Model::Factory::SimpleFactory(Clear::Reflection::Table).new} of String => Clear::Model::Factory::Base

Class Method Summary

Macro Summary

Class Method Detail

def self.build(type : String, h : Hash, cache : Clear::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : Clear::Model #

[View source]
def self.build(type : T.class, h : Hash, cache : Clear::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : T forall T #

[View source]

Macro Detail

macro add(type, factory) #

[View source]