Class::DBI::Loader::Generic - Generic Class::DBI::Loader Implementation.
See Class::DBI::Loader
Available constructor options are:
List of additional base classes your table classes will use.
List of additional base classes, that need to be leftmost, for example Class::DBI::Sweet (former Catalyst::Model::CDBI::Sweet).
List of additional classes which your table classes will use.
Only load tables matching regex.
Exclude tables matching regex.
Enable debug messages.
DBI Data Source Name.
Namespace under which your table classes will be initialized.
Password.
Try to automatically detect/setup has_a and has_many relationships.
An hashref, which contains exceptions to Lingua::EN::Inflect::PL(). Useful for foreign language column names.
Username.
Returns a tables class.
my $class = $loader->find_class($table);
Returns a sorted list of classes.
my $@classes = $loader->classes;
Overload to enable debug messages.
Returns a sorted list of tables.
my @tables = $loader->tables;
Class::DBI::Loader, Class::DBI::Loader::mysql, Class::DBI::Loader::Pg, Class::DBI::Loader::SQLite
To install Class::DBI::Loader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::DBI::Loader
CPAN shell
perl -MCPAN -e shell install Class::DBI::Loader
For more information on module installation, please visit the detailed CPAN module installation guide.