Simon Cozens > Maypole > Maypole::Model::CDBI::Plain

Download:
Maypole-1.7.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  5
View/Report Bugs
Source   Latest Release: Maypole-2.13

NAME ^

Maypole::Model::CDBI::Plain - Class::DBI model without ::Loader

SYNOPSIS ^

    package Foo;
    use base 'Apache::DBI';
    use Foo::SomeTable;
    use Foo::Other::Table;

    Foo->config->{model_class} = "Maypole::Model::CDBI::Plain";
    Foo->setup([qw/ Foo::SomeTable Foo::Other::Table /]);

DESCRIPTION ^

This module allows you to use Maypole with previously set-up Class::DBI classes; simply call setup with a list reference of the classes you're going to use, and Maypole will work out the tables and set up the inheritance relationships as normal.

syntax highlighting: