Introduction to ModuleFactory and AdaptorFactory
ModuleFactory has the knowledge of Schema.
For ModuleFactory::make_virtual_module and AdaptorFactory::make_object_adaptor, they generate the module according to the type in schema, and return the generated module's name.
make_object_adaptor -- a module _make_only_fetch_method -- method(s)
sub make_module { my ($self, $type)=@_; sub make_method { my ($self, $model)=@_; my ($self, $val)=@_;
To install AutoSQL::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AutoSQL::Schema
CPAN shell
perl -MCPAN -e shell install AutoSQL::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.