# 使用 Homebrew 安装 sql-lint

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

## 安装

```sh
sudo av install brew:sql-lint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sql-lint
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:sql-lint
- **软件包管理器:** Homebrew
- **版本:** 1.0.2
- **来源摘要:** SQL linter to do sanity checks on your queries and bring errors back from the DB
- **主页:** <https://github.com/joereynolds/sql-lint>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sql-lint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

sql-lint is a command-line SQL linter for MySQL and PostgreSQL-oriented workflows. Its official documentation positions it as a sanity-check tool that reports local lint findings and can also bring back database-server errors.

### 项目历史

The GitHub repository was created in July 2018 and later moved its main development branch to `typescript`. The project reached a 1.0.0 release in June 2022, when the maintainer described it as stable and added command-line support for ignoring selected lint errors.

### 采用历史

The README documents npm and Yarn global installation, downloadable release binaries, and editor integration through external-tool support. The release history shows packaged Linux, macOS, and Windows binaries, which made the tool usable outside Node-centric setups.

### 使用方式

sql-lint is usually run against files, directories, or stdin, for example `sql-lint .`, `sql-lint create-person.sql`, or piping a query into the command. Its configuration can be passed through CLI flags, discovered as `.sql-lint.json` while walking up from the current directory, or read from `~/.config/sql-lint/config.json`.

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

Package nerds care about sql-lint because it is a small, composable CLI that brings SQL review into shells, editor integrations, and CI-style checks without requiring a full IDE. Its XDG-style global config and project-local config discovery match common Unix packaging expectations.

### 时间线

- 2018: GitHub repository created.
- 2020: v0.0.14 release improved recursive directory linting and simplified CLI arguments.
- 2022: v1.0.0 release declared the project stable.
- 2025: v1.0.1 release added directory-local config support and more SQL statement support.

### Related projects

- The README lists editor integration through ALE for Vim and Neovim and an Inline SQL extension for VS Code. It also overlaps culturally with SQL Language Server through the same SQL editing and linting niche.

### 来源

- <https://api.github.com/repos/joereynolds/sql-lint>
- <https://api.github.com/repos/joereynolds/sql-lint/releases>
- <https://github.com/joereynolds/sql-lint#readme>
- <https://github.com/joereynolds/sql-lint/blob/typescript/docs/files/configuration.md>
- <https://github.com/joereynolds/sql-lint/blob/typescript/docs/files/introduction.md>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .sql-lint.json, ~/.config/sql-lint/config.json

## Credential files

- Unix: .sql-lint.json, ~/.config/sql-lint/config.json

## Combined YAML source

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


## 来源

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