DBIx-QueryLog
view release on metacpan or search on metacpan
The following code does the same:
use DBIx::QueryLog ();
DBIx::QueryLog->enable;
# ... do something
DBIx::QueryLog->disable;
- ignore\_trace
Returns a guard object and disables tracing while the object is alive.
use DBIx::QueryLog;
# enabled
$dbh->do(...);
{
my $guard = DBIx::QueryLog->ignore_trace;
# disable
$dbh->do(...);
lib/DBIx/QueryLog.pm view on Meta::CPAN
The following code does the same:
use DBIx::QueryLog ();
DBIx::QueryLog->enable;
# ... do something
DBIx::QueryLog->disable;
=item ignore_trace
Returns a guard object and disables tracing while the object is alive.
use DBIx::QueryLog;
# enabled
$dbh->do(...);
{
my $guard = DBIx::QueryLog->ignore_trace;
# disable
$dbh->do(...);
( run in 1.429 second using v1.01-cache-2.11-cpan-39bf76dae61 )