Rechercher une page de manuel
Catalyst::Model::DBIC.3pm
Langue: en
Version: 2008-03-05 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Catalyst::Model::DBIC - (DEPRECATED) DBIC Model ClassSYNOPSIS
# use the helper create model DBIC DBIC dsn user password # lib/MyApp/Model/DBIC.pm package MyApp::Model::DBIC; use base 'Catalyst::Model::DBIC'; __PACKAGE__->config( dsn => 'dbi:Pg:dbname=myapp', password => '', user => 'postgres', options => { AutoCommit => 1 }, relationships => 1 ); 1; $c->model('DBIC')->table('foo')->search(...); MyApp::Model::DBIC::Table->search(...);
DEPRECATION NOTICE
This module has been deprecated in favor of the schema-based Catalyst::Model::DBIC::Schema. This module should only be considered as a temporary measure if you are porting from Catalyst::Model::CDBI.DESCRIPTION
This is the "DBIx::Class" model class. It's built on top of "DBIx::Class::Loader".METHODS
- new
- Initializes DBIx::Class::Loader and loads classes using the class config.
- $self->table($name)
- Returns the class for given table name.
SEE ALSO
Catalyst, DBIx::Class Catalyst::Model::DBIC::SchemaAUTHOR
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