module Clear::Model::Factory
Defined in:
clear/model/factories/base.crclear/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
- .build(type : String, h : Hash, cache : Clear::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : Clear::Model
- .build(type : T.class, h : Hash, cache : Clear::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : T forall T
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
#
def self.build(type : T.class, h : Hash, cache : Clear::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : T forall T
#