Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalyst::model::cdbi(3pm) [debian man page]

Catalyst::Model::CDBI(3pm)				User Contributed Perl Documentation				Catalyst::Model::CDBI(3pm)

NAME
Catalyst::Model::CDBI - [DEPRECATED] CDBI Model Class SYNOPSIS
# 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". "Class::DBI" is generally not used for new applications, with "DBIx::Class" being preferred instead. As such this model is deprecated and (mostly) unmaintained. It is preserved here for older applications which still need it for backwards compatibility. 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::Loader AUTHOR
Sebastian Riedel, "sri@cpan.org" CONTRIBUTORS
mst: Matt S Trout "mst@shadowcat.co.uk" Arathorn: Matthew Hodgson "matthew@arasphere.net" COPYRIGHT
Copyright (c) 2005 - 2010 the Catalyst::Model::CDBI "AUTHOR" and "CONTRIBUTORS" as listed above. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-02-09 Catalyst::Model::CDBI(3pm)

Check Out this Related Man Page

CRUD(3pm)						User Contributed Perl Documentation						 CRUD(3pm)

NAME
Catalyst::Model::CDBI::CRUD - CRUD CDBI Model Class SYNOPSIS
# lib/MyApp/Model/CDBI.pm package MyApp::Model::CDBI; use base 'Catalyst::Model::CDBI::CRUD'; __PACKAGE__->config( dsn => 'dbi:SQLite2:/tmp/myapp.db', relationships => 1 ); 1; # lib/MyApp.pm package MyApp; use Catalyst 'FormValidator'; __PACKAGE__->config( name => 'My Application', root => '/home/joeuser/myapp/root' ); sub table : Global { my ( $self, $c ) = @_; $c->form( optional => [ MyApp::Model::CDBI::Table->columns ] ); #see Data::FormValidator $c->forward('MyApp::Model::CDBI::Table'); } sub end : Private { $c->forward('MyApp::V::TT'); } 1; DESCRIPTION
This is a subclass of "Catalyst::Model::CDBI" with additional CRUD methods. Don't forget to copy the base templates to config->root! *NOTE* This module has been deprecated. See BUGS section below! METHODS add Does nothing by default. destroy Deletes a Class::DBI object. do_add Creates a new Class::DBI object from $c->form. do_edit Updates a Class::DBI object from $c->form. edit Does nothing by default. list Does nothing by default. process Dispatches CRUD request to methods. view Does nothing by default. BUGS
This module is no longer supported by the Catalyst developers. We keep it indexed for the sake of existing users, but highly recommend new users to look at Catalyst::Helper::Controller::Scaffold SEE ALSO
Catalyst, Catalyst::Model::CDBI AUTHOR
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. perl v5.10.1 2005-10-13 CRUD(3pm)
Man Page