SQLite: Query Result Formatting in the CLI
thunderbong
14 points
2 comments
March 09, 2026
Related Discussions
Found 5 related stories in 646.3ms across 14,015 title embeddings via pgvector HNSW
- SQLite Release 3.53.0 thunderbong · 12 pts · April 09, 2026 · 48% similar
- Learning a few things about running SQLite surprisetalk · 206 pts · July 17, 2026 · 47% similar
- Modern SQLite: Features You Didn't Know It Had thunderbong · 197 pts · April 02, 2026 · 47% similar
- SQLite Release 3.52.0 chungy · 16 pts · March 06, 2026 · 47% similar
- SQLite should have (Rust-style) editions gnyeki · 193 pts · July 15, 2026 · 47% similar
Discussion Highlights (1 comments)
mergisi
The .mode options in SQLite's CLI are surprisingly comprehensive for what most people treat as a lightweight embedded database. Table mode and box mode in particular make ad-hoc queries readable without piping through external tools. One underrated use case: switching between .mode json and .mode csv lets you prototype data pipelines entirely inside the SQLite shell. You can validate query logic, check edge cases in formatting, and export in the right shape without writing a single line of application code. The challenge for newcomers is discoverability. Most people learn about .mode column and .headers on from Stack Overflow answers, then never explore further. Having the full formatting reference documented in one place helps bridge that gap — especially for people coming from tools like ai2sql.io (disclosure: I work on this) where the focus is getting the query right first, and formatting the output is a separate step they often haven't thought about yet.