GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CATALYST::MODEL::CDBI (3)

.ds Aq ’

NAME

Catalyst::Model::CDBI - [DEPRECATED] CDBI Model Class

CONTENTS

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CATALYST::MODEL::CDBI (3) 2010-02-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.