# Install clickhouse-sql-parser with Homebrew

Writing clickhouse sql parser in pure Go. Version 0.5.4 via Homebrew; verified 2026-08-02.

## Install

```sh
sudo av install brew:clickhouse-sql-parser
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clickhouse-sql-parser
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:clickhouse-sql-parser
- **Package manager:** Homebrew
- **Version:** 0.5.4
- **Source summary:** Writing clickhouse sql parser in pure Go
- **Homepage:** <https://github.com/AfterShip/clickhouse-sql-parser>
- **Repository:** <https://github.com/AfterShip/clickhouse-sql-parser>
- **Last updated:** 2026-08-02T11:42:57Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- clickhouse-sql-parser (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.5.4
## Project history and usage

ClickHouse SQL Parser is a Go library and CLI for parsing ClickHouse SQL into an AST and formatting or beautifying ClickHouse queries.

### Project history

The official README says the project aims to build a ClickHouse SQL parser in Go and notes inspiration from memefish, a Go SQL parser for Cloud Spanner.

### Adoption history

The tool is available both as a Go install target and as a Homebrew formula, matching common distribution paths for Go developer CLIs.

### How it is used

Developers import the parser package in Go code or run `clickhouse-sql-parser` from the shell to parse SQL strings, format SQL, beautify SQL, or read queries from files.

### Why package nerds care

It is interesting to package managers because it bridges library and CLI packaging: the same Go module can be consumed by applications and installed as a standalone formatter/parser executable.

### Related projects

- The README explicitly cites memefish as an inspiration and targets the ClickHouse SQL dialect.

### Sources

- Official GitHub README: project goal, features, Go library examples, CLI installation, and usage examples.


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Combined YAML source

View the package source record on GitHub. [combined/clickhouse-sql-parser.yml](https://github.com/mxcl/pkgdb/blob/main/combined/clickhouse-sql-parser.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
