Tracy – missing queries panel

Notice: This thread is very old.
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)

jiri.pudil
Nette Blogger | 1029
+
0
-

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

noodle
Member | 9
+
0
-

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

petr.pavel
Member | 535
+
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.

Vojtěch Dobeš
Gold Partner | 1316
+
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)