module
Lustra::Model::Factory
Defined in:
lustra/model/factories/base.crlustra/model/factories/polymorphic_factory.cr
lustra/model/factories/simple_factory.cr
lustra/model/factory.cr
Constant Summary
-
FACTORIES =
{"Lustra::Reflection::Column" => ::Lustra::Model::Factory::SimpleFactory(Lustra::Reflection::Column).new, "Lustra::Reflection::Table" => ::Lustra::Model::Factory::SimpleFactory(Lustra::Reflection::Table).new} of String => Lustra::Model::Factory::Base
Class Method Summary
- .build(type : String, h : Hash, cache : Lustra::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : Lustra::Model
- .build(type : T.class, h : Hash, cache : Lustra::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 : Lustra::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : Lustra::Model
#
def self.build(type : T.class, h : Hash, cache : Lustra::Model::QueryCache | Nil = nil, persisted = false, fetch_columns = false) : T forall T
#