Cataly...l::CDBI(3pm)
π Cataly...l::CDBI β the manual, but make it make sense π
okay bestie, you found Cataly...l::CDBI(3pm), which is the User Contributed Perl Documentation page for this thing. yes the title is literally truncated like that in the header, that's just how man pages do. let's go β¨
πΈ NAME πΈ
Catalyst::Model::CDBI β [DEPRECATED] the CDBI Model Class, no cap.
π¦ SYNOPSIS π¦
first up, the helper does the heavy lifting:
# use the helper
create model CDBI CDBI dsn user password
then your model file is giving very much:
# 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;
and you can call it as an object method:
# As object method
$c->comp('MyApp::Model::CDBI::Table')->search(...);
or as a class method, whichever vibe you're on today:
# As class method
MyApp::Model::CDBI::Table->search(...);
β¨ DESCRIPTION β¨
so this is the Class::DBI model class. it's built on top of Class::DBI::Loader, okay? and Class::DBI is generally not what you reach for on new applications β DBIx::Class is the preferred one instead. so like, this model is deprecated and (mostly) unmaintained. it's giving retirement era π
it's kept here purely for older applications that still need it for backwards compatibility. if that's not you, respectfully, use something else π
π new π
initializes Class::DBI::Loader and loads classes using the class config. also attempts to borg all the classes. yes, borg. we don't make the rules π«Ά
π₯ SEE ALSO π₯
CatalystClass::DBI Class::DBI::Loader
π AUTHOR π
Sebastian Riedel, sri@cpan.org
π CONTRIBUTORS π
mst: Matt S Troutmst@shadowcat.co.ukArathorn: Matthew Hodgsonmatthew@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.
and that's the whole page, bestie π this was perl v5.32.0, dated 2021-01-05, straight from Cataly...l::CDBI(3pm). mwah, go forth and maintain your legacy app πβ¨
π¦ where this page comes from
- debian bookworm: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-model-cdbi-perl 0.12-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms