Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【开源自荐】纯 Go 实现的 ClickHouse SQL 解析器 #2775

Open
git-hulk opened this issue Jun 26, 2024 · 0 comments
Open

【开源自荐】纯 Go 实现的 ClickHouse SQL 解析器 #2775

git-hulk opened this issue Jun 26, 2024 · 0 comments

Comments

@git-hulk
Copy link

git-hulk commented Jun 26, 2024

推荐项目

  • 类别:Go
  • 项目标题:纯 Go 实现的 ClickHouse SQL 解析器
  • 项目描述:clickhouse-sql-parser 是一款基于 Go 实现的 ClickHouse SQL 解析器,兼容了绝大多数 DML / DDL / Query 语句,也可以作为 Go 开发学习 SQL 解析器的入门项目。
  • 亮点:纯 Go 实现 lexer 和 parser,代码易懂,同时兼容了绝大多数的语法。

  • 示例代码:(可选)

query := "SELECT * FROM clickhouse"
parser := clickhouse.NewParser(query)
// Parse query into AST
statements, err := parser.ParseStatements()
if err != nil {
    return nil, err
}
  • 截图:(可选)gif/png/jpg

  • 后续更新计划:

  1. 支持更多 ClickHouse 新引入的语法
  2. 支持关键节点信息解析
  3. 长期支持用户反馈的兼容性问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant