I am developing an app with flask and SQL Alchemy. I need to display the queries executed to generate a page alongside the time each query took for debugging
What's the best way to do it?
If you're using the Flask-SQLAlchemy extension and don't want to bother with create_engine
, you can set the configuration key SQLALCHEMY_ECHO=True
.
http://flask-sqlalchemy.pocoo.org/2.1/config/
app.config['SQLALCHEMY_ECHO'] = True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With