NAME
DBIx::Class::QueryLog::WithStackTrace
DESCRIPTION
A subclass of DBIx::Class::QueryLog that adds a stacktrace to the logs
METHOD
There are only two methods implemented, everything else is inherited from DBIx::Class::QueryLog.
query_start
Exactly the same as the parent class's implementation, except that it also adds a 'stacktrace' key to the objects representing queries.
The stacktrace is a Devel::StackTrace object. Ideally the stacktrace will start at the point with the DBIx::Class method that your code called, but you will sometimes see one or two of its internal methods before that. Sorry, this is a limitation of Devel::StackTrace.
query_class
An implementation detail, returns 'DBIx::Class::QueryLog::WithStackTrace::Query'. See DBIx::Class::QueryLog for details.
FEEDBACK
I welcome feedback about my code, especially constructive criticism.
AUTHOR, COPYRIGHT and LICENCE
Copyright 2012 David Cantrell <david@cantrell.org.uk>
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively.
CONSPIRACY
This module is also free-as-in-mason software.