# sqlfmt を Homebrew でインストール

sqlfmt のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:sqlfmt
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install sqlfmt
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:sqlfmt
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/sqlfmt>
- **バージョン:** 0.5.0
- **ソース概要:** SQL formatter with width-aware output
- **ホームページ:** <https://sqlfum.pt/>
- **リポジトリ:** <https://github.com/madelynnblue/sqlfmt>
- **上流ドキュメント:** <https://sqlfum.pt/>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/madelynnblue/sqlfmt/archive/refs/tags/v0.5.0.tar.gz>
- **最終更新:** 2026-07-26T04:03:45+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- sqlfmt (cli)
- sqlfmt (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.5.0
- マネージャ更新日: 2026-07-26
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/madelynnblue/sqlfmt
- 検出された最新: v0.5.0 (最新)
## プロジェクトの歴史と使われ方

sqlfmt is a command-line SQL formatter focused on width-aware output. In package-manager culture it fits the formatter niche: a small tool installed by name and wired into editor, CI, or pre-commit workflows to make SQL diffs less noisy.

### プロジェクトの歴史

The public repository describes sqlfmt as a SQL formatter with width-aware output and says its formatting model is based on Philip Wadler's pretty-printing work. The first GitHub release, v0.1.0, was published as an initial binary release in October 2018.

Later releases kept the tool packaged as standalone binaries. Version 0.5.0, published in March 2023, switched to the CockroachDB parser package according to the project's release notes.

### 採用の歴史

Homebrew packages sqlfmt as the `sqlfmt` formula, making it available through the same install path used for other formatter CLIs. GitHub repository metadata also shows a modest open-source audience through stars, forks, and releases.

### 使われ方

The tool is used as `sqlfmt` to reformat SQL text. Its value is strongest in repositories where SQL lives beside application code and maintainers want predictable wrapping and casing without manually adjusting query text.

### パッケージ好きにとっての重要性

Package nerds care about sqlfmt because it is a narrowly scoped formatter with prebuilt release artifacts and a Homebrew formula: the classic shape of a small CLI that becomes useful once it is easy to install everywhere.

### タイムライン

- 2018: v0.1.0 published as the initial binary release.
- 2019: v0.4.0 release notes mention adding case-mode support to the CLI.
- 2023: v0.5.0 release notes mention moving to the CockroachDB parser package.

### Related projects

- The project README cites Wadler-style pretty printing as an influence.
- The v0.5.0 release notes cite CockroachDB's parser package as the parser dependency.

### ソース

- <https://api.github.com/repos/madelynnblue/sqlfmt/releases - official GitHub release dates and release notes.>
- <https://github.com/madelynnblue/sqlfmt - official repository README, release metadata, and project description.>
- source_facts.package-manager.brew - Homebrew formula name supplied in input.


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sqlfmt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [pgformatter](https://pkg.so/ja/brew/pgformatter/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, postgresql, sql.
- [dbmate](https://pkg.so/ja/brew/dbmate/) - Shares pkgdb curated category or tags: cli, developer-tools, postgresql, sql.
- [sqlfluff](https://pkg.so/ja/brew/sqlfluff/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, sql.
- [sqlx-cli](https://pkg.so/ja/brew/sqlx-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, postgresql, sql.
- [sqruff](https://pkg.so/ja/brew/sqruff/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, sql.
- [sql-formatter](https://pkg.so/ja/brew/sql-formatter/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, sql.
- [postgres-language-server](https://pkg.so/ja/brew/postgres-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, postgresql, sql.
- [pg-schema-diff](https://pkg.so/ja/brew/pg-schema-diff/) - Shares pkgdb curated category or tags: cli, developer-tools, postgresql, sql.

## Combined YAML source

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


## ソース

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