Egg::Model::DBI::dbh - Data base handler.


NAME

Egg::Model::DBI::dbh - Data base handler.


DESCRIPTION

It is a data base handler that the Egg::Model::DBI manpage returns.

  my $dbh= $e->model('dbi::data_label');

This module operates as Wrapper of the DBI module.


METHODS

Please refer to the document of the DBI module for the method that can be used.

dbh

An original data base handler of DBI or Ima::DBI is returned.

Especially, it is necessary to refer to the original because the attribute of an original data base handler doesn't have the object of this module.

  if ($dbh->dbh->{Active}) {
     .......
  }

pid

Process ID under operation is returned.

  my $process_id = $dbh->pid;

tid

When operating by the thread, the thread ID is returned.

  my $thread_id = $dbh->tid;


SEE ALSO

the Egg::Release manpage, the Egg::Model manpage, the Egg::Model::DBI manpage, the Egg::Model::DBI::Base manpage, the Class::Accessor::Fast manpage,


AUTHOR

Masatoshi Mizuno, <lushe@cpan.org>


COPYRIGHT AND LICENSE

Copyright (C) 2008 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.

 Egg::Model::DBI::dbh - Data base handler.