clickhouse-sql-parser

module
v0.0.0-...-0a5c366 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0

README

Clickhouse SQL Parser

This is a Go Clickhouse SQL Parser built with Antlr4.

The original antlr4 grammar files are from the official clickhouse repository, although the maintainers of clickhouse have stated that this is unsupported, but this is still the easiest way to quickly build a clickhouse sql parser with as robust as possible.

The original antlr4 grammar files contain a little bit of C++ code, but this can be replaced with Go easily, you can see the current grammar file here.

Installation

Before using this library, you should know and agree with the following points:

  1. This library has not undergone any security testing, and you need to take full responsibility for any potential risks, including data loss.
  2. We are currently in the early stages of development and may change some APIs at any time without prior notice.

Now, you can install this library with the following command.

go get github.com/hungtcs/clickhouse-sql-parser@master

Roadmap

  • Cover Antlr4 CST to AST
  • Implement AST Visitor
  • AST Serialize to SQL

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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