j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

How can I see the raw sql that Idiorm generated? #331

Closed thinsoldier closed 6 years ago

treffynnon commented 6 years ago

You can't from PHP land just like when you use PDO directly - https://stackoverflow.com/a/2411208?stw=2

Idiorm ships with its own query logging implementation that you can use, but it emulates what the database/PDO does underneath. http://idiorm.readthedocs.io/en/latest/configuration.html#query-logging

To see the actually queries that ran you'd have to refer to the logging/history/journaling available in your database of choice.

On 27 Dec 2017 2:48 p.m., "thinsoldier" notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/j4mie/idiorm/issues/331, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD-v5kfY8u9OfSmeEUjKA4Lh7pQDM_fks5tEcwQgaJpZM4RNLCc .

treffynnon commented 6 years ago

I am guessing that this answered your question so closing.