Egg::Model::DBI - It is DBI model for Egg.
This is a sample of the configuration.
MODEL=> [ ['DBI'=> { dsn => 'dbi:Pg:dbname=database;host=localhost;port=5432', user => 'db_user', password=> 'db_password', options => { RaiseError=> 1, AutoCommit=> 0 }, }], ],
* get data base handler.
my $dbh= $e->model('DBI')->dbh;
If Ima::DBI can be used, Ima::DBI is succeeded to.
In this case, the data base steering wheel can be received directly from A by using db_Main.
$e->model('DBI')->db_Main;
* This has been matched to the function of Class::DBI.
However, I recommend the method of acquiring the data base steering wheel with 'dbh' as usual.
* It is not necessary to rely on in a continuous connection to the data base in this and to rely on Apache::DBI.
http://dbi.perl.org/, Ima::DBI Egg::Release,
Masatoshi Mizuno, <mizuno@bomcity.com>
Copyright (C) 2006 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.