Skip to content

Commit

Permalink
Update README with homebrew instruction (AfterShip#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk authored Oct 23, 2024
1 parent 004bbd6 commit 2e25715
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,24 @@ if err != nil {
}
```

- Use clickhouse-sql-parser as a CLI tool
- Install clickhouse-sql-parser as a CLI tool


On Linux:

```bash
$ go install github.com/AfterShip/clickhouse-sql-parser@latest
```

On macOS:

```bash
$ brew install clickhouse-sql-parser
```

Parse ClickHouse SQL into AST or beautify ClickHouse SQL format:

```bash
## Parse query into AST
$ clickhouse-sql-parser "SELECT * FROM clickhouse WHERE a=100"

Expand Down

0 comments on commit 2e25715

Please sign in to comment.