Expand description
Query execution engine.
Dispatches parsed Query variants to the appropriate executor:
execute_with_metrics— live queries against Docker + metricsexecute_with_store— historical queries against a telemetry store
Also provides table rendering (render_table_ratatui,
render_table_colored), CSV/JSONL output, and diff support.
§Example
ⓘ
let result = executor::execute_with_metrics(&query, &docker, &metrics).await?;
println!("{}", executor::render_table_with_theme(&result, Theme::Dark));Structs§
Enums§
- Executor
Error - Theme
- Color theme for the rendered table output.
Functions§
- execute
- execute_
with_ metrics - execute_
with_ store - render_
csv - render_
diff - render_
jsonl - render_
table - render_
table_ colored - render_
table_ ratatui - Render a table using ratatui’s Table widget with box-drawing borders,
colored headers, and styled cells. Uses an in-memory
TestBackend. - render_
table_ with_ theme - Render a table with the given theme. Selects ratatui if the terminal is wide enough, otherwise falls back to the colour-coded plain-text render.