core.orm.debug
¶
Module Contents¶
Classes¶
A timer that works just like a stopwatch. |
Functions¶
|
Pretty prints the given query. |
|
Analyzes the sql-queries executed during its context. There are three |
- core.orm.debug.analyze_sql_queries(report: Literal[summary, redundant, all] = 'summary') Iterator[None] [source]¶
Analyzes the sql-queries executed during its context. There are three levels of information (report argument):
‘summary’ (only show the number of queries)
‘redundant’ (show summary and the actual redundant queries)
‘all’ (show summary and all executed queries)
Use this with a with_statement:
with analyze_sql_queries(): ... # <- analyzes all sql queries that happen inside here