Tracy – missing queries panel

5 years ago

noodle
Member | 9
+
0
-

Hi,
I am trying standalone tracy withnout Nette.
When I use Nette, I see part for database queries in debuger panel.
Is it possible to use this part withnout Nette or is this part only for Nette Database?

And if I will use tracy with some ORM, could I display this?
Thanks for reply

Last edited by noodle (2014-02-01 17:05)

5 years ago

jiri.pudil
Member | 838
+
0
-

You will have to write your own implementation of Tracy\IBarPanel. See the one provided by Nette\Database for reference.

5 years ago

noodle
Member | 9
+
0
-

Thank you for quick answer. I expected it. That´s a pitty.

5 years ago

petr.pavel
Backer | 492
+
0
-

Actually, if your ORM uses PDO then you can pass it Nette Database (which inherits PDO) and then you can use the built-in NDB debug panel. See this Czech thread about using NotORM over NDB.

5 years ago

Vojtěch Dobeš
Member | 1317
+
0
-

@petr.pavel This is not true at least since 2.1, Nette Database doesn't inherit PDO anymore.

But situation is not that pitty, there are panels for dibi, NotORM, Doctrine. Hopefully range could expand if users of other ORMs would write panels of their own and published them :).

Last edited by vojtech.dobes (2014-02-02 00:58)