Database-aware AI agent for the terminal: full-screen TUI, schema discovery, and bounded read-only SQL over PostgreSQL, MySQL, SQLite, DuckDB, and Snowflake.
//! Shared row shape: pad or truncate every row to the column count.
pub(super)fnnormalize_row(row:&serde_json::Value, col_count:usize)->Vec<serde_json::Value>{letmut cells =match row {serde_json::Value::Array(arr)=> arr.clone(),
scalar =>vec![scalar.clone()],};
cells.resize(col_count,serde_json::Value::Null);
cells
}