clickhouse-sql-parser
« Back to VersTracker
Description:
Writing clickhouse sql parser in pure Go
Type: Formula  |  Latest Version: 0.4.17@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: clickhouse sql parser golang database
Install: brew install clickhouse-sql-parser
About:
clickhouse-sql-parser is a native Go library designed for parsing and analyzing ClickHouse SQL queries. It provides an abstract syntax tree (AST) representation, enabling developers to programmatically inspect, modify, or validate SQL statements. This tool is essential for building database tools, linters, or applications that need to interact with ClickHouse databases dynamically.
Key Features:
  • Pure Go implementation with no external dependencies
  • Comprehensive AST (Abstract Syntax Tree) generation
  • Support for complex ClickHouse-specific syntax
  • SQL query validation and formatting capabilities
Use Cases:
  • Building custom SQL linters or formatters for ClickHouse
  • Programmatic analysis and transformation of database queries
  • Developing database migration or proxy tools
  • Creating visual query builders for ClickHouse
Alternatives:
  • go-sql-parser – Generic SQL parsers often lack specific ClickHouse syntax support like custom data types and engine definitions.
  • sqlparse (Python) – A Python-based generic SQL tokenizer, not suitable for Go-native applications requiring AST manipulation.
Version History
Detected Version Rev Change Commit
Oct 10, 2025 7:56am 0 VERSION_BUMP 83fe8cc7
Jan 8, 2025 3:01am 0 VERSION_BUMP 0a32417f
Jan 8, 2025 2:17am 0 VERSION_BUMP 673fb09d