• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AfterShip / clickhouse-sql-parser / 27321212730

11 Jun 2026 03:10AM UTC coverage: 52.126% (+0.1%) from 52.012%
27321212730

Pull #278

github

git-hulk
Add ParseStmt, ParseExpr and FormatBeautify convenience API

- ParseStmt(sql) parses exactly one statement, erroring on zero or
  multiple statements, so callers no longer need to go through
  NewParser(...).ParseStmts() and validate the slice length.
- ParseExpr(sql) parses an expression fragment (column expression,
  function call, ...) and requires the whole input to be consumed.
- FormatBeautify(expr) renders multi-line indented SQL, the one-call
  counterpart of Format; previously beautified output required wiring
  NewFormatter().WithBeautify().WriteExpr() by hand. The CLI -beautify
  path now uses it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #278: Add ParseStmt, ParseExpr and FormatBeautify convenience API

28 of 30 new or added lines in 1 file covered. (93.33%)

8398 of 16111 relevant lines covered (52.13%)

2999.16 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.33
/parser/api.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc