mp has asked for the wisdom of the Perl Monks concerning the following question:
Is there an easy way to override DBI::prepare or 'execute' in such a way that I can add some logging to give a stack trace (Carp::cluck) showing where every database query in a large body of code was called from, as it runs?
One thing I thought of is to make a dummy DBI class and proxy DBI::prepare calls through it, but I am not sure exactly how to get started on this. Any pointers or general direction would be greatly appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
(jeffa) Re: How to report call stack for DBI queries
by jeffa (Bishop) on Apr 17, 2003 at 18:07 UTC | |
by mp (Deacon) on Apr 17, 2003 at 18:26 UTC | |
Re: How to report call stack for DBI queries
by arturo (Vicar) on Apr 17, 2003 at 18:09 UTC | |
Re: How to report call stack for DBI queries
by dws (Chancellor) on Apr 17, 2003 at 18:27 UTC | |
Re: How to report call stack for DBI queries
by perlplexer (Hermit) on Apr 17, 2003 at 18:36 UTC | |
by merlyn (Sage) on Apr 17, 2003 at 20:23 UTC | |
by perlplexer (Hermit) on Apr 17, 2003 at 20:56 UTC |
Back to
Seekers of Perl Wisdom