Skip to content

ClickHouse/clickhouse-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClickHouse Analyzer

An analyzer for ClickHouse SQL.

Goal

The idea for this project is to have a tool like rust-analyzer for ClickHouse SQL (LSP, auto-complete, formatting, code suggestions, analysis, node extraction, etc.)

Contributing

There's not much code here, it is only able to parse some elements of a SELECT query. Feel free to modify and restructure the project as needed.

To learn more about the theory for this parser, read this blog post.

The code has some sample WASM functions. If you want to build the WASM you can follow this guide from MDN.

Example output

See example_output.txt for example of what the tree looks like.

About

SQL analyzer for ClickHouse SQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages