# 使用 Homebrew, Nix 安装 sqlboiler

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

## 安装

```sh
sudo av install brew:sqlboiler
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sqlboiler
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sqlboiler
```

  证据: nixpkgs package indexes: pkgs/by-name/sq/sqlboiler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:sqlboiler
- **软件包管理器:** Homebrew
- **版本:** 4.19.7
- **来源摘要:** Generate a Go ORM tailored to your database schema
- **主页:** <https://github.com/aarondl/sqlboiler>
- **仓库:** <https://github.com/aarondl/sqlboiler>
- **最后更新:** 2026-07-26T04:03:44+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sqlboiler (别名)
- sqlboiler-mssql (别名)
- sqlboiler-mysql (别名)
- sqlboiler-psql (别名)
- sqlboiler-sqlite3 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

SQLBoiler is a database-first Go ORM generator: users point it at an existing schema and it generates Go models, query helpers, and database-specific code rather than asking developers to describe the schema in Go structs.

### 项目历史

The project appeared publicly on GitHub in 2016 and its first GitHub release was tagged v1.0.0 in September 2016. Its README explains that it grew out of an attempt to bring ActiveRecord-like productivity to Go while avoiding reflection-heavy, code-first ORM designs.

By the maintained v4 line, SQLBoiler had moved with the Go ecosystem toward Go modules; the README notes that v3 was the last GOPATH-compatible version and that v4 is the maintained version.

### 采用历史

SQLBoiler became one of the recognizable Go database code-generation tools, especially for teams with existing PostgreSQL, MySQL, SQL Server, or SQLite schemas. The input package metadata lists Homebrew and Nix packaging, which reflects its use as an installable developer CLI rather than only a Go library.

### 使用方式

Typical use starts with a database schema and a sqlboiler.toml file, then runs the sqlboiler CLI with a database driver such as sqlboiler-psql, sqlboiler-mysql, sqlboiler-mssql, or sqlboiler-sqlite3 to regenerate models as the schema changes.

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

Package-manager users care about SQLBoiler because it is a classic generated-code CLI: installing the formula gives repeatable access to the generator and its driver commands without making every project vendor a local toolchain bootstrap step.

### 时间线

- 2016: GitHub repository created.
- 2016: v1.0.0 tagged as the initial release.
- v4 era: Go modules become the maintained line; v3 remains the last GOPATH-compatible line.
- Current README: project is in maintenance mode and points active-development users toward alternatives such as Bob and sqlc.

### Related projects

- The README contrasts SQLBoiler with code-first Go ORMs such as gorm and gorp, and lists Bob and sqlc as alternatives for users who want active development or a non-ORM SQL compiler approach.

### 来源

- <https://api.github.com/repos/aarondl/sqlboiler/releases>
- <https://api.github.com/repos/volatiletech/sqlboiler>
- <https://github.com/volatiletech/sqlboiler#readme>
- input.source_facts.package-manager


## 安全说明

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: sqlboiler.toml, $XDG_CONFIG_HOME/sqlboiler/sqlboiler.toml, ~/.config/sqlboiler/sqlboiler.toml

## Credential files

- Unix: sqlboiler.toml, $XDG_CONFIG_HOME/sqlboiler/sqlboiler.toml, ~/.config/sqlboiler/sqlboiler.toml
## 其他软件包管理器记录

- Nix - sqlboiler: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sqlboiler/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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