Catalyst::Model::CDBI(3pm)

Catalyst::Model::CDBI3pm

[deprecated] cdbi model class

Usage

    # 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(...);

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.

  1. 4.0
  2. 5.0
  3. 6.0–9
  4. 10
  5. 11–13

Author

Sebastian Riedel, "[email protected]"

From libcatalyst-model-cdbi-perl 0.12-2.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.