Skip to main content

Module cli_render

Module cli_render 

Source
Expand description

Public rendering helpers used by both the CLI binary and the test suite.

Functions§

render_column_type
Render a column type as a DDL token.
render_explain
Render the .explain <sql> REPL output. Runs the SQL to populate the trace, then formats the physical plan + index-usage summary.
render_sync_status
Render the .sync status output buffer. Includes the live committed-TxId.
render_table_meta
Render a table’s .schema DDL. Auto-indexes (kind == IndexKind::Auto) are suppressed from output to keep .schema focused on user-authored DDL. Pass render_table_meta_verbose to include them.
render_table_meta_verbose
Render a table’s .schema DDL INCLUDING auto-indexes. Used by .schema --verbose / EXPLAIN SCHEMA t for agents that need to see the full picture.
value_to_string
Render a single Value as the CLI displays it in SELECT output.