Re: DB wishlist
| From: | Lukas Smith | Date: | Wed, 21 Jan 2004 12:53:10 +0000 |
| Subject: | Re: DB wishlist | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-25207@lists.php.net to get a copy of this message | ||
Aidan Lister wrote:
Do you think it would be possible to add some statistical support into DB? Although I'm sure this is considered extra bloat, it's hard to implement simply by extending the class.indeed, since you can only wrap not really extend DB.
What I'd like to be able to retrieve is: Number of queries, Total execution time. Assuming that was easy enough, how about: an array of: query number query time queryMDB has a debug method that is called in various places. if debug mode is enabled a userdefineable call back method is called, that you theoretically not only log every query but also run EXPLAIN and what not.
I'm sure this'll get rejected as unwanted bloat, but I'd like to know how many other people would also like this functionality. (If there's a really simple way to extend the DB class to do this, I'm welcome to suggestions.
Also, does the developer intend to bring out a PHP5+ version of this package? Ie. No php4 support (presumably much faster and cleaner)...The next version is not planned yet, however we are hoping that with php 5.1 there will be a C ext that will take over most of the work of DB. This means that we can focus on the abstraction and not so much on API unification. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07