Expand description
Output formatting for QueryResult
This module provides writers that adapt QueryResult to various output formats (table, JSON, CSV) with stable, cqlsh-compatible formatting.
§Contract
All writers follow the QUERY_RESULT_CONTRACT.md specification:
- Column order determined by
metadata.columns - Null values handled consistently
- Format-specific conventions (e.g., row count footer for tables)
Re-exports§
pub use csv::CSVWriter;pub use csv::StreamingCSVWriter;pub use json::JSONWriter;pub use json::StreamingJSONWriter;pub use parquet::create_streaming_parquet_writer;pub use parquet::create_streaming_parquet_writer_from_writer;pub use parquet::ParquetWriter;pub use table::TableWriter;
Modules§
- csv
- CSV output writer for QueryResult
- json
- JSON output writer for QueryResult
- parquet
- CLI adapter for the core Parquet export writer (Epic #682)
- table
- Table output writer for QueryResult
- value_
fmt - Value formatting for CLI output writers
Structs§
- Streaming
Progress - Progress information for streaming operations
- Value
Formatter - ValueFormatter provides cqlsh-compatible string formatting for CQL values
Enums§
- Output
Error - Error type for output operations
- Output
Target - Target destination for query output
Traits§
- Streaming
Writer - Trait for writers that support streaming/chunked output
Functions§
- write_
to_ target - Write output to target (stdout or file) with atomic file writes