GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Catalyst::Model::CDBI::Sweet(3) User Contributed Perl Documentation Catalyst::Model::CDBI::Sweet(3)

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

    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

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.

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

Christian Hansen <ch@ngmedia.com>

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

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

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

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

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

Catalyst

Class::DBI::Sweet

2022-04-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.