kyle has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to modify queries that are going to the database in a programmatic way without modifying code throughout the whole application. Specifically, I want to put call stack information in a SQL comment so that they'll show up in the DB's logs. This means I can't use some external proxy to modify the queries because it won't know what line of code the query came from.
Is this possible? Is it easy to do with a DBI subclass or some such? Is a module to do this already written?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can DBI modify queries on the fly?
by perrin (Chancellor) on Feb 17, 2009 at 23:42 UTC | |
by kyle (Abbot) on Feb 18, 2009 at 02:07 UTC | |
by ikegami (Patriarch) on Feb 18, 2009 at 02:19 UTC | |
by kyle (Abbot) on Feb 18, 2009 at 17:01 UTC | |
by ikegami (Patriarch) on Feb 18, 2009 at 17:08 UTC | |
| |
Re: Can DBI modify queries on the fly?
by jfroebe (Parson) on Feb 17, 2009 at 22:58 UTC | |
by kyle (Abbot) on Feb 18, 2009 at 01:51 UTC | |
by doom (Deacon) on Feb 18, 2009 at 04:45 UTC | |
by jfroebe (Parson) on Feb 18, 2009 at 02:59 UTC | |
by kyle (Abbot) on Feb 18, 2009 at 03:08 UTC | |
by jfroebe (Parson) on Feb 18, 2009 at 03:52 UTC | |
Re: Can DBI modify queries on the fly?
by ikegami (Patriarch) on Feb 17, 2009 at 23:14 UTC | |
by jfroebe (Parson) on Feb 17, 2009 at 23:35 UTC | |
by ikegami (Patriarch) on Feb 18, 2009 at 19:00 UTC | |
by DrHyde (Prior) on Feb 18, 2009 at 10:48 UTC | |
Re: Can DBI modify queries on the fly? (solution)
by kyle (Abbot) on Feb 18, 2009 at 19:16 UTC | |
Re: Can DBI modify queries on the fly?
by kyle (Abbot) on Oct 14, 2009 at 18:41 UTC |
Back to
Seekers of Perl Wisdom