Catalyst::Model::CDBI::Sweet - Making sweet things sweeter


Catalyst-Model-CDBI-Sweet documentation  | view source Contained in the Catalyst-Model-CDBI-Sweet distribution.

Index


NAME

Top

    Catalyst::Model::CDBI::Sweet - Making sweet things sweeter

SYNOPSIS

Top

    package MyApp::Model::CDBI;
    use base 'Catalyst::Model::CDBI::Sweet';
    MyApp::Model::CDBI->connection('DBI:driver:database');

    package MyApp::Model::Article;
    use base 'MyApp::Model::CDBI';

	... # table class config here

DESCRIPTION

Top

This model is a thin wrapper around Class::DBI::Sweet to let you use it as a Catalyst Model easily. It's similar to Catalyst::Model::CDBI::Plain.

If you want to use loader, you will probably want to add something like this to your CDBI model config section instead:

           left_base_classes       => qw/Class::DBI::Sweet/,

To see how you can take advantage of this module, please check out the Class::DBI::Sweet documentation.

SEE ALSO

Top

Class::DBI::Sweet, Catalyst::Model::CDBI, Catalyst.

AUTHOR

Top

Christian Hansen <ch@ngmedia.com>

THANKS TO

Top

Danijel Milicevic, Jesse Sheidlower, Marcus Ramberg, Sebastian Riedel, Viljo Marrandi

SUPPORT

Top

#catalyst on irc://irc.perl.org

http://lists.rawmode.org/mailman/listinfo/catalyst

http://lists.rawmode.org/mailman/listinfo/catalyst-dev

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

Catalyst

Class::DBI::Sweet


Catalyst-Model-CDBI-Sweet documentation  | view source Contained in the Catalyst-Model-CDBI-Sweet distribution.