Function
after_cursor_execute
(
conn, cursor, statement, parameters, context, executemany
)
Source from the content-addressed store, hash-verified
| 403 | |
| 404 | @sa.event.listens_for(engine, "after_cursor_execute") |
| 405 | def after_cursor_execute( |
| 406 | conn, cursor, statement, parameters, context, executemany |
| 407 | ): |
| 408 | total = time.time() - now |
| 409 | |
| 410 | if context and context.compiled: |
| 411 | statement_str = context.compiled.string |
| 412 | else: |
| 413 | statement_str = statement |
| 414 | queries[statement_str].append(total) |
| 415 | |
| 416 | return queries |
| 417 | |
Callers
nothing calls this directly
Tested by
no test coverage detected