Part of lp.testing View In Hierarchy
These are only retrievable at the end of a request, and for tests it is useful to be able to make assertions about the calls made during a request: this class provides a tool to gather them in a simple fashion.
See StormStatementRecorder for a Storm-specific collector that
works outside a request.
| Instance Variables | count | The count of db queries the last web request made. |
| queries | The list of queries made. See lp.services.webapp.adapter.get_request_statements for more information. |
| Method | __init__ | Undocumented |
| Method | register | Start counting queries. |
| Method | __enter__ | Undocumented |
| Method | __call__ | Undocumented |
| Method | unregister | Undocumented |
| Method | __exit__ | Undocumented |