![]() |
![]()
| ![]() |
![]()
NAMEDBIx::Class::QueryProfiler - DBIx::Class profiler DESCRIPTIONProfiler for DBIx::Class. Also it provides more usable output or queries. SYNOPSYSIn order to start using just declare in your schema the code use DBIx::Class::QueryProfiler; sub connection { my $self = shift; my $response = $self->next::method(@_); $response->storage->auto_savepoint(1); $response->storage->debug(1); $response->storage->debugobj(DBIx::Class::QueryProfiler->new); return $response; } Possible to use debugfh () to select right output debuging filehandle $response->storage->debugfh(IO::File->new('/tmp/trace.out', 'w')); or it can be set through an environment variable DBIC_TRACE export DBIC_TRACE="1=/tmp/trace.out" METHODSquery_startCalled before a query is executed. The first argument is the SQL string being executed and subsequent arguments are the parameters used for the query. query_endCalled when a query finishes executing. Has the same arguments as query_start. Prints the specified string to our debugging filehandle, which we will attempt to open if we haven't yet. BUGSNo bugs. Found? Report please :-) AUTHORSAndrey Kostenko <andrey@kostenko.name>, Mons Anderson <mons@cpan.org> COMPANYRambler Internet Holding CREATED15.04.2009 19:28:45 MSD
|