macOS
brew install sql-formatterlocal Homebrew formula metadata
安装
brew install sql-formatterlocal Homebrew formula metadata
nix profile install nixpkgs#sql-formatternixpkgs package indexes · pkgs/by-name/sq/sql-formatter/package.nix · 来源: api.github.com
概览
Whitespace formatter for different query languages
历史
SQL Formatter is a TypeScript and JavaScript library and CLI for pretty-printing SQL and related query languages.
The project was created in 2016 and its README says it started as a port of a PHP library before diverging substantially. It grew into a multi-dialect formatter supporting engines and query languages including BigQuery, ClickHouse, DB2, DuckDB, Hive, MariaDB, MySQL, N1QL, Oracle PL/SQL, PostgreSQL, Redshift, Snowflake, Spark, SQLite, Transact-SQL, Trino, and others.
SQL Formatter is primarily distributed through the JavaScript package ecosystem, with the README recommending npm, yarn, pnpm, or bun. The supplied package metadata also shows Homebrew and Nix packaging for the CLI, and the organization maintains an official VS Code extension.
The library exposes a `format` function for applications, while the CLI installs as `sql-formatter` and can format stdin or a file. It accepts language and config options, searches for `.sql-formatter.json` in the current or parent directories, and can also use a config path or JSON string passed with `--config`.
Package nerds care about SQL Formatter because it is a small, installable formatting primitive that can be embedded in editors, scripts, CI, and language tooling. Its appeal is broad dialect coverage and simple package-manager installation rather than a full SQL linting framework.
安全态势
没有找到 sql-formatter 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.sql-formatter.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sql-formatter | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://sql-formatter-org.github.io/sql-formatter/
安装元数据
| 软件包键 | brew:sql-formatter |
|---|---|
| 版本 | 15.8.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/sql-formatter |
| 主页 | https://sql-formatter-org.github.io/sql-formatter/ |
| 仓库 | https://github.com/sql-formatter-org/sql-formatter |
| 上游文档 | https://github.com/sql-formatter-org/sql-formatter#readme |
| 许可证 | MIT |
| 源码归档 | https://registry.npmjs.org/sql-formatter/-/sql-formatter-15.8.2.tgz |
| 最后更新 | 2026-06-22T14:17:23Z |
| Pulse | updated |
| 依赖 | node |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | sql-formatter |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sql-formatter
nix profile install nixpkgs#sql-formatter来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.