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


Egg-Release-DBI documentation  | view source Contained in the Egg-Release-DBI distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

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

This module operates as Wrapper of the DBI module.

METHODS

Top

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

Top

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

AUTHOR

Top

Masatoshi Mizuno, <lushe&64;cpan.org>

COPYRIGHT AND LICENSE

Top


Egg-Release-DBI documentation  | view source Contained in the Egg-Release-DBI distribution.