Go library and CLI that parses ClickHouse-dialect SQL into a typed AST. Supports lexing, parsing, AST walking, round-trip formatting, and beautification. Use for query linting, static analysis, rewriting, access-control enforcement, schema validation, and SQL formatting.
Latest release v0.5.6 · 12 Aug 2026
2 files for Codex, OpenCode and Claude Code: clickhouse-sql-parser AGENTS.md, clickhouse-sql-parser CLAUDE.md — 1,183 tokens loaded in every session.
AGENTS.md C 1,180 tok CLAUDE.md A 3 tok These files are AfterShip/clickhouse-sql-parser's own configuration — they tell Codex, OpenCode and Claude Code how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.