Catalyst::Model::CDBI3pm
[deprecated] cdbi model class
Usage
# use the helpercreate model CDBI CDBI dsn user password# lib/MyApp/Model/CDBI.pmpackage 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 methodMyApp::Model::CDBI::Table->search(...);
Overview
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.
Contributors
mst: Matt S Trout "[email protected]"
Arathorn: Matthew Hodgson "[email protected]"
Releases
10 releases since Debian 4.0 (Etch); the text changed 4 times.