Flask SQLAlchemy display queries for debug

后端 未结 8 1379
感情败类
感情败类 2021-02-03 17:21

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

8条回答
  •  感动是毒
    2021-02-03 17:58

    Late reply but setting "echo=True" in your sqlalchemy create_engine will log the queries executed and the time.

提交回复
热议问题