Rechercher une page de manuel
Catalyst::Model::CDBI.3pm
Langue: en
Version: 2005-11-23 (ubuntu - 08/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
Catalyst::Model::CDBI - CDBI Model ClassSYNOPSIS
# use the helper create model CDBI CDBI dsn user password # lib/MyApp/Model/CDBI.pm package MyApp::Model::CDBI; use base 'Catalyst::Model::CDBI'; __PACKAGE__->config( dsn => 'dbi:Pg:dbname=myapp', password => '', user => 'postgres', options => { AutoCommit => 1 }, relationships => 1 ); 1; # As object method $c->comp('MyApp::Model::CDBI::Table')->search(...); # As class method MyApp::Model::CDBI::Table->search(...);
DESCRIPTION
This is the "Class::DBI" model class. It's built on top of "Class::DBI::Loader".new
Initializes Class::DBI::Loader and loads classes using the class config. Also attempts to borg all the classes.
SEE ALSO
Catalyst, Class::DBI Class::DBI::LoaderAUTHOR
Sebastian Riedel, "sri@cpan.org"COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre