Skip to main content

Module executor

Module executor 

Source
Expand description

Query execution engine.

Dispatches parsed Query variants to the appropriate executor:

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§

ExecutionResult
Row

Enums§

ExecutorError
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.