[Dbix-class] Adding comments to generated queries
David Cantrell
david at cantrell.org.uk
Wed May 30 13:23:41 GMT 2012
On Wed, May 30, 2012 at 06:03:52AM -0500, Bill Moseley wrote:
> Of course, with DBIC it's a bit more difficult to define "where" a query
> comes from since it can get built in parts and doesn't get executed until
> it's used. Plus, we already have code that reports on "slow" queries (or
> excessive queries) in a given web request.
>
> Still, Is there any existing module that would do something like this this?
> I'm not sure what it would put in outside of a stack trace.
You mean like this?
http://search.cpan.org/~dcantrell/DBIx-Class-QueryLog-WithStackTrace-1.0/
--
David Cantrell | Nth greatest programmer in the world
On the bright side, if sendmail is tied up routing spam and pointless
uknot posts, it's not waving its arse around saying "root me!"
-- Peter Corlett, in uknot
More information about the DBIx-Class
mailing list