Re: Re: All executed queries in DB (Common?)
| From: | Charlie van de Kerkhof | Date: | Tue, 18 Apr 2006 08:48:58 +0000 |
| Subject: | Re: Re: All executed queries in DB (Common?) | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23703@lists.php.net to get a copy of this message | ||
On 18 Apr 2006, at 10:29, Lukas Smith wrote:
Charlie van de Kerkhof wrote:You're right about the documentation ;) In the example they exectued there own written queries, so after each query the called the debug method and added the query. But I don;t build it myself, due to using DB_Table. But thanx for your time Lukas. - CharlieOn 18 Apr 2006, at 07:55, Lukas Smith wrote:there is unfortunately little documentation :( have a look at the example.php in the docs folder. i think it sets a debug handler.Charlie van de Kerkhof wrote:Thnx Lucas. I was searching in the MDB2 documentation but didn't find a method or something. Can you point me to the right direction?Hi, I was wondering if you could get all executed queries at the end of a script for debugging reasons. I can build it myself, but I was wondering if DB (or DB_Common) has a built in functionality that I can't find.nope its not supported and not really doable unless you wrap around the DB instance or hack the source if DB_common itself. Another alternative is to use MDB2, which does support query debugging.
regards, Lukas