SQLite: Query Result Formatting in the CLI
thunderbong
14 points
2 comments
March 09, 2026
Related Discussions
Found 5 related stories in 36.4ms across 3,471 title embeddings via pgvector HNSW
- 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
- Show HN: Turbolite – a SQLite VFS serving sub-250ms cold JOIN queries from S3 russellthehippo · 131 pts · March 26, 2026 · 46% similar
- Improving personal tax filing with Claude CLI and Obsidian iamspoilt · 17 pts · March 28, 2026 · 39% similar
- PgAdmin 4 9.13 with AI Assistant Panel __natty__ · 85 pts · March 10, 2026 · 39% 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.