clickhouse-sql-parser

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 6 Imported by: 0

README

clickhouse-sql-parser

A Go library for parsing ClickHouse SQL statements.

🛠️ This is a maintained fork of AfterShip/clickhouse-sql-parser, with improvements and customizations by Hydrolix.

✨ Features

  • Converts ClickHouse SQL into an abstract syntax tree (AST)
  • Lightweight and easy to embed in Go applications

📦 How to use

You can use it as your Go library

go get github.com/hydrolix/clickhouse-sql-parser@latest
import "github.com/hydrolix/clickhouse-sql-parser/parser"

input := "SELECT count() FROM events"

ast, err := parser.Parse(input)
if err != nil {
log.Fatalf("parse error: %v", err)
}

// Use AST...

📄 License

Licensed under the MIT License, same as the original project.

🙏 Credits

Originally created by AfterShip. Forked and maintained by Hydrolix.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL