fastflowtransform.executors.query_stats.runtime.base¶
QueryStatsExecutor ¶
Bases: Protocol
Minimal executor surface used by query-stats runtimes.
Source code in src/fastflowtransform/executors/query_stats/runtime/base.py
16 17 18 19 | |
BaseQueryStatsRuntime ¶
Base runtime for collecting per-query stats.
Executors compose this (like runtime contracts) and delegate stat recording so the run engine can aggregate per-node metrics.
Source code in src/fastflowtransform/executors/query_stats/runtime/base.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
record_result ¶
record_result(result, *, timer=None, duration_ms=None, estimated_bytes=None, adapter=None, sql=None, rowcount_extractor=None, extra_stats=None, post_estimate_fn=None)
Collect stats from a result object and record them on the executor.
Either pass a timer (from start_timer) or an explicit duration_ms. If no adapter is given, a simple QueryStats with bytes/duration is recorded.
Source code in src/fastflowtransform/executors/query_stats/runtime/base.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |