flask-sqlalchemy
flask-sqlalchemy copied to clipboard
Include `bind_key` in query recording
It would be extremely useful if _QueryInfo also included the bind_key of the engine that issued the query.
A typical use case for query recording is in test assertions. When using multiple databases, it's pretty important to know which database your query went to.