The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Model::DBI - It is DBI model for Egg.

SYNOPSIS

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;

DESCRIPTION

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.

SEE ALSO

http://dbi.perl.org/, Ima::DBI Egg::Release,

AUTHOR

Masatoshi Mizuno, <lushe@cpan.org>

COPYRIGHT AND LICENSE

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.