.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Catalyst::Model::CDBI 3pm" .TH Catalyst::Model::CDBI 3pm "2018-06-25" "perl v5.26.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Catalyst::Model::CDBI \- [DEPRECATED] CDBI Model Class .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& # use the helper \& create model CDBI CDBI dsn user password \& \& # lib/MyApp/Model/CDBI.pm \& package MyApp::Model::CDBI; \& \& use base \*(AqCatalyst::Model::CDBI\*(Aq; \& \& _\|_PACKAGE_\|_\->config( \& dsn => \*(Aqdbi:Pg:dbname=myapp\*(Aq, \& password => \*(Aq\*(Aq, \& user => \*(Aqpostgres\*(Aq, \& options => { AutoCommit => 1 }, \& relationships => 1 \& ); \& \& 1; \& \& # As object method \& $c\->comp(\*(AqMyApp::Model::CDBI::Table\*(Aq)\->search(...); \& \& # As class method \& MyApp::Model::CDBI::Table\->search(...); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This is the \f(CW\*(C`Class::DBI\*(C'\fR model class. It's built on top of \&\f(CW\*(C`Class::DBI::Loader\*(C'\fR. \f(CW\*(C`Class::DBI\*(C'\fR is generally not used for new applications, with \f(CW\*(C`DBIx::Class\*(C'\fR being preferred instead. As such this model is deprecated and (mostly) unmaintained. .PP It is preserved here for older applications which still need it for backwards compatibility. .SS "new" .IX Subsection "new" Initializes Class::DBI::Loader and loads classes using the class config. Also attempts to borg all the classes. .SH "SEE ALSO" .IX Header "SEE ALSO" Catalyst, Class::DBI Class::DBI::Loader .SH "AUTHOR" .IX Header "AUTHOR" Sebastian Riedel, \f(CW\*(C`sri@cpan.org\*(C'\fR .SH "CONTRIBUTORS" .IX Header "CONTRIBUTORS" mst: Matt S Trout \f(CW\*(C`mst@shadowcat.co.uk\*(C'\fR .PP Arathorn: Matthew Hodgson \f(CW\*(C`matthew@arasphere.net\*(C'\fR .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 2005 \- 2010 the Catalyst::Model::CDBI \*(L"\s-1AUTHOR\*(R"\s0 and \&\*(L"\s-1CONTRIBUTORS\*(R"\s0 as listed above. .PP This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.