3 ms·
I wrote sqltap not too long ago to solve this problem for users of SQLAlchemy, complete with pretty web UI for visualizing not just the queries, but also where
by inconshreveable 12y ago
I wrote sqltap not too long ago to solve this problem for users of SQLAlchemy, complete with pretty web UI for visualizing not just the queries, but also where they originated in the application:
It also lets you dynamically enable/disable the introspection so you could run it in production.
https://github.com/inconshreveable/sqltap https://github.com/inconshreveable/sqltap