Module formatter

Module formatter 

Source
Expand description

Output formatting for CQL query results.

Provides type-aware tabular formatting using comfy-table and expanded (vertical) output mode. Paging is handled externally by the minus pager crate. Mirrors the Python cqlsh output formatting behavior.

Constantsยง

CQLSH_PRESET ๐Ÿ”’
A comfy-table preset matching Python cqlshโ€™s simple pipe-separated output.

Functionsยง

cql_value_to_json ๐Ÿ”’
Serialize a CqlValue to a JSON token.
is_numeric_type ๐Ÿ”’
Check if a CQL type name represents a numeric type.
json_escape_string ๐Ÿ”’
Escape a string for use as a JSON string value (without surrounding quotes).
print_expanded
Format and print query results in expanded (vertical) format.
print_json
Format and print query results as a JSON array.
print_tabular
Format and print query results in tabular format.
print_trace
Format tracing session output matching Python cqlsh style.