MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / after_cursor_execute

Function after_cursor_execute

test/perf/many_table_reflection.py:405–414  ·  view source on GitHub ↗
(
        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

Calls 2

timeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected