GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::CLASS::QUERYPROFILER (3)

.ds Aq ’

NAME

DBIx::Class::QueryProfiler - DBIx::Class profiler

CONTENTS

DESCRIPTION

Profiler for DBIx::Class. Also it provides more usable output or queries.

SYNOPSYS

In 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"



METHODS

    query_start

Called 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_end

Called when a query finishes executing. Has the same arguments as query_start.

    print

Prints the specified string to our debugging filehandle, which we will attempt to open if we haven’t yet.

BUGS

No bugs. Found? Report please :-)

AUTHORS

Andrey Kostenko <andrey@kostenko.name>, Mons Anderson <mons@cpan.org>

COMPANY

Rambler Internet Holding

CREATED

15.04.2009 19:28:45 MSD
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::CLASS::QUERYPROFILER (3) 2011-08-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.