A subclass of DBIx::Class::QueryLog that adds a stacktrace to the logs
There are only two methods implemented, everything else is inherited from DBIx::Class::QueryLog.
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.
An implementation detail, returns 'DBIx::Class::QueryLog::WithStackTrace::Query'. See DBIx::Class::QueryLog for details.
I welcome feedback about my code, especially constructive criticism.
Copyright 2012 David Cantrell <email@example.com>
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.
This module is also free-as-in-mason software.