man Class::DBI::Loader::Generic () - Generic Class::DBI::Loader Implementation.

NAME

Class::DBI::Loader::Generic - Generic Class::DBI::Loader Implementation.

SYNOPSIS

See Class::DBI::Loader

DESCRIPTION

OPTIONS

Available constructor options are:

additional_base_classes

List of additional base classes your table classes will use.

left_base_classes

List of additional base classes, that need to be leftmost, for example Class::DBI::Sweet (former Catalyst::Model::CDBI::Sweet).

additional_classes

List of additional classes which your table classes will use.

constraint

Only load tables matching regex.

exclude

Exclude tables matching regex.

debug

Enable debug messages.

dsn

DBI Data Source Name.

namespace

Namespace under which your table classes will be initialized.

password

Password.

relationships

Try to automatically detect/setup has_a and has_many relationships.

inflect

An hashref, which contains exceptions to Lingua::EN::Inflect::PL(). Useful for foreign language column names.

user

Username.

METHODS

find_class

Returns a tables class.

    my $class = $loader->find_class($table);

classes

Returns a sorted list of classes.

    my $@classes = $loader->classes;

debug

Overload to enable debug messages.

tables

Returns a sorted list of tables.

    my @tables = $loader->tables;

SEE ALSO

Class::DBI::Loader, Class::DBI::Loader::mysql, Class::DBI::Loader::Pg, Class::DBI::Loader::SQLite