# 使用 Homebrew 安装 clickhouse-sql-parser

查看 clickhouse-sql-parser 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:clickhouse-sql-parser
- **软件包管理器:** Homebrew
- **版本:** 0.5.4
- **来源摘要:** Writing clickhouse sql parser in pure Go
- **主页:** <https://github.com/AfterShip/clickhouse-sql-parser>
- **仓库:** <https://github.com/AfterShip/clickhouse-sql-parser>
- **最后更新:** 2026-08-02T11:42:57Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clickhouse-sql-parser (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.4
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 来源

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


## 安全说明

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

- **Geiger 风险:** blue / 中
- 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)


## 来源

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