Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vmvarela/sql-pipe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.11.0
Choose a base ref
...
head repository: vmvarela/sql-pipe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.0
Choose a head ref
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Jun 5, 2026

  1. feat: pretty-printed table output with auto-detected TTY (#163)

    * feat: pretty-printed table output with auto-detected TTY
    
    When stdout is a TTY, format query results as an aligned table with
    Unicode box-drawing borders. When piped, output stays CSV (preserving
    scriptability). Numeric columns are right-aligned, text left-aligned.
    
    - Add src/table.zig: buffers rows, computes column widths, detects
      numeric columns, prints formatted table with ┌─┬─┐ borders
    - Add --table / --no-table flags for explicit control (TableMode enum)
    - Auto-detect stdout TTY in main() to resolve table mode
    - Table mode disabled when --output writes to a file
    - --table is incompatible with non-CSV/TSV output formats (error)
    - Update README.md with table output examples and flag docs
    - Add 7 integration tests covering table output, piped CSV, error
      paths, numeric alignment, empty results, and --output interaction
    
    Closes #156
    
    * refactor: two-pass streaming and Unicode width support for table output
    
    - Implement two-pass streaming with sqlite3_reset to reduce memory from O(rows×cols) to O(cols)
    - Add visualWidth() helper for proper CJK character alignment (width 2)
    - Check sqlite3_step return codes and propagate errors
    - Batch write operations for better performance
    - Show NULL explicitly instead of blank cells
    - Fix Z023 parameter order (std.Io before other params)
    - Add unit tests for isNumericString and visualWidth
    vmvarela authored Jun 5, 2026
    Configuration menu
    Copy the full SHA
    f4ea026 View commit details
    Browse the repository at this point in the history
Loading