Man Page: catalyst::model::dbi
Operating Environment: debian
Section: 3pm
Catalyst::Model::DBI(3pm) User Contributed Perl Documentation Catalyst::Model::DBI(3pm)NAMECatalyst::Model::DBI - DBI Model ClassSYNOPSIS# use the helper create model DBI DBI dsn username password # lib/MyApp/Model/DBI.pm package MyApp::Model::DBI; use base 'Catalyst::Model::DBI'; __PACKAGE__->config( dsn => 'dbi:Pg:dbname=myapp', password => '', username => 'postgres', options => { AutoCommit => 1 }, ); 1; my $dbh = $c->model('DBI')->dbh; #do something with $dbh ...DESCRIPTIONThis is the "DBI" model class.METHODSnew Initializes DBI connection $self->dbh Returns the current database handle. $self->stay_connected Returns a connected database handle. $self->connected Returns true if the database handle is active and pingable. $self->connect Connects to the database and returns the handle. $self->disconnect Executes rollback if AutoCommit is active, disconnects and unsets the database handle.SEE ALSOCatalyst, DBIAUTHORAlex Pavlovic, "alex.pavlovic@taskforce-1.com"COPYRIGHTCopyright (c) 2005 - 2009 the Catalyst::Model::DBI "AUTHOR" as listed above.LICENSEThis program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-01-28 Catalyst::Model::DBI(3pm)
| Similar Topics in the Unix Linux Community |
|---|
| New to Perl-LDAP |
| DBI - Change database |
| Creating a table |
| list of all values that can be set by $dbh in perlDBI |
| SQL database call into Multidimensional Array using Perl Script |