# 使用 Homebrew 安装 sql-language-server

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

## 安装

```sh
sudo av install brew:sql-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sql-language-server
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:sql-language-server
- **软件包管理器:** Homebrew
- **版本:** 1.7.1
- **来源摘要:** Language Server for SQL
- **主页:** <https://github.com/joe-re/sql-language-server>
- **最后更新:** 2026-06-22T14:06:21-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sql-language-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

SQL Language Server is a TypeScript language-server implementation for SQL editing, packaged as both an editor-facing tool and a command-line server. Its README describes autocompletion, warnings and errors, linting, a SQL parser, and a Visual Studio Code extension, with support for MySQL, PostgreSQL, SQLite3, and BigQuery configuration.

### 项目历史

The public GitHub repository was created in May 2018 and is organized as a small ecosystem: the server package, a sqlint linting package, a VS Code client, and a SQL parser. Later releases in 2023 show continued grammar and parser maintenance, including support for CTEs, create table options, create index statements, and drop table statements.

### 采用历史

The project fits the post-Language Server Protocol editor culture in which command-line language servers are installed once and then wired into Vim, Neovim, VS Code, Monaco, or another client. The official README documents npm global installation, Neovim LanguageClient setup, nvim-lsp setup, and a VS Code extension, which made it useful beyond one editor.

### 使用方式

Common CLI usage is `sql-language-server up --method stdio`, usually launched by an editor or LSP client rather than typed by hand. Users place database connection details in a personal `.sqllsrc.json` file or a project-root `.sqllsrc.json`; those files can include usernames, passwords, SSH settings, and project path matching.

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

For package-manager users, SQL Language Server is interesting because it turns SQL support into a conventional Unix-style executable with editor-neutral stdio transport. Homebrew packaging matters because editors and dotfile setups can depend on `sql-language-server` being present in PATH without caring whether it came from npm, Brew, or an editor extension.

### 时间线

- 2018: GitHub repository created.
- 2018: README documented npm global installation and editor integration.
- 2023: 1.4.x to 1.7.x releases added and fixed parser support for more SQL statements.
- 2024: Repository remained active on the release branch.

### Related projects

- The README names its own related packages: `sql-language-server`, `sqlint`, a Visual Studio Code extension, and a SQL parser. It also documents integration with LanguageClient-neovim, nvim-lspconfig, and monaco-languageclient.

### 来源

- <https://api.github.com/repos/joe-re/sql-language-server>
- <https://api.github.com/repos/joe-re/sql-language-server/releases>
- <https://github.com/joe-re/sql-language-server#readme>


## 安全说明

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: ~/.config/sql-language-server/.sqllsrc.json, ${YOUR_PROJECT_ROOT}/.sqllsrc.json

## Credential files

- Unix: ~/.config/sql-language-server/.sqllsrc.json, ${YOUR_PROJECT_ROOT}/.sqllsrc.json

## Combined YAML source

View the package source record on GitHub. [combined/sql-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sql-language-server.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
