Catalyst::Model::DBI(3)User Contributed Perl DocumentatioCnatalyst::Model::DBI(3) NNAAMMEE Catalyst::Model::DBI - DBI Model Class SSYYNNOOPPSSIISS # use the helper create model DBI DBI dsn user password # lib/MyApp/Model/DBI.pm package MyApp::Model::DBI; use base 'Catalyst::Model::DBI'; __PACKAGE__->config( dsn => 'dbi:Pg:dbname=myapp', password => '', user => 'postgres', options => { AutoCommit => 1 }, ); 1; my $dbh = $c->model('DBI')->dbh; #do something with $dbh ... DDEESSCCRRIIPPTTIIOONN This is the "DBI" model class. MMEETTHHOODDSS new Initializes DBI connection $self->dbh Returns the current database handle. SSEEEE AALLSSOO Catalyst, DBI AAUUTTHHOORR Alex Pavlovic, "alex.pavlovic@taskforce-1.com" CCOOPPYYRRIIGGHHTT This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.7 2005-11-27 Catalyst::Model::DBI(3)