🍺 BREW Explorer

← all formulae

clickhouse-sql-parser

brew install clickhouse-sql-parser v0.5.1 MIT

Writing clickhouse sql parser in pure Go

10
30-day installs · #8646
27
90-day · #8948
218
365-day · #7143
238
★ GitHub stars · updated 2mo ago

Build dependencies

go

GitHub topics

clickhouse go sql-parser

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Writing clickhouse sql parser in pure Go",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:26+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "clickhouse-sql-parser",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-14T03:39:26Z",
  "github_readme_excerpt": "# ClickHouse SQL Parser \n![GitHub CI](https://github.com/AfterShip/clickhouse-sql-parser/actions/workflows/ci.yaml/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/AfterShip/clickhouse-sql-parser)](https://goreportcard.com/report/github.com/AfterShip/clickhouse-sql-parser) [![LICENSE](https://img.shields.io/github/license/AfterShip/clickhouse-sql-parser.svg)](https://github.com/AfterShip/clickhouse-sql-parser/blob/master/LICENSE) [![GoDoc](https://img.shields.io/badge/Godoc-reference-blue.svg)](https://godoc.org/github.com/AfterShip/clickhouse-sql-parser) [![Coverage Status](https://coveralls.io/repos/github/AfterShip/clickhouse-sql-parser/badge.svg?branch=master)](https://coveralls.io/github/AfterShip/clickhouse-sql-parser?branch=master) \u003ca href=\"https://hellogithub.com/repository/23597949cafa410bba6039ddb8867543\" target=\"_blank\"\u003e\u003cimg src=\"https://api.hellogithub.com/v1/widgets/recommend.svg?rid=23597949cafa410bba6039ddb8867543\u0026claim_uid=kyCYu1VAKgwD8rE\u0026theme=small\" alt=\"Featured\uff5cHelloGitHub\" /\u003e\u003c/a\u003e\n\nThe goal of this project is to build a ClickHouse SQL parser in Go with the following key features:\n\n- Parse ClickHouse SQL into AST\n- Beautify ClickHouse SQL format\n\nThis project is inspired by [memefish](https://github.com/cloudspannerecosystem/memefish) which is a SQL parser for Spanner in Go.\n## How to use\n\nYou can use it as your Go library or CLI tool, see the following examples:\n\n- Use clickhouse-sql-parser as a Go library\n\n```Go\npackage main\n\nimport (\n    clickhouse \"github.com/AfterShip/clickhouse-sql-parser/parser\"\n)\n\nquery := \"SELECT * FROM clickhouse\"\nparser := clickhouse.NewParser(query)\n// Parse query into AST\nstatements, err := parser.ParseStmts()\nif err != nil {\n    return nil, err\n}\n```\n\n- Install clickhouse-sql-parser as a CLI tool\n\n\nOn Linux:\n\n```bash\n$ go install github.com/AfterShip/clickhouse-sql-parser@latest\n```\n\nOn macOS:\n\n```bash\n$ brew install clickhouse-sql-parser\n```\n\nParse ClickHouse SQL into AST or format ClickHouse ",
  "github_repo": "AfterShip/clickhouse-sql-parser",
  "github_stars": 238,
  "github_topics": [
    "clickhouse",
    "go",
    "sql-parser"
  ],
  "homepage": "https://github.com/AfterShip/clickhouse-sql-parser",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 10,
  "installs_365d": 218,
  "installs_90d": 27,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "clickhouse-sql-parser",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 8646,
  "rank_365d": 7143,
  "rank_90d": 8948,
  "raw_hash": "ab32e22b34608076",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/clickhouse-sql-parser.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.5.1",
  "versioned_formulae": [],
  "why_use_this": null
}