creole::drivers::debug Namespace Reference

Debug implementation of Connection. More...


Detailed Description

Debug implementation of Connection.

This is a Connection that implements the decorator pattern, wrapping around the true Connection object (stored in $childConnection). This Connection tracks information about queries executed and makes that information available for debugging purposes. The information tracked is the last query executed on the connection (getLastExecutedQuery()) and the total number of queries executed on the connection thus far (getNumQueriesExecuted()).

To use this debug connection, you need to register it as a new Creole driver that handles all connection types. To do this, call the following before calling Creole::getConnection():

Creole::registerDriver('*', 'creole.drivers.debug.DebugConnection');

The next call to Creole::getConnection() will return an instance of DebugConnection.

Author:
Michael Sims


Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8