Add to your composer.json
:
$ composer require nextras/tracy-query-panel
Register Nette DI extension:
extensions:
queryPanel: Nextras\TracyQueryPanel\DI\QueryPanelExtension
queryPanel:
- Nextras\TracyQueryPanel\Handlers\DibiHandler
Possibly create implementations of IVoidQueries
based on your service hooks and pass them to QueryPanel::addQuery()
.
Currently implemented query handlers are:
- DibiConnection
- Nette\Database
However, it should be super straightforward to implement IQuery
producer for any engine.
Example legacy implementations for:
- Neo4j
- Elasticsearch
can be found at https://github.com/Mikulas/nette-panel-queries/tree/master/queries. These implementations will not however work out of the box.
If you happen to create implementations for your engine, please consider sending a pull request into this repo.
- Original forum thread: http://forum.nette.org/en/18901-tracy-universal-query-panel
MIT. See full license.