macOS
brew install sqlclocal Homebrew formula metadata
sudo port install sqlcMacPorts ports tree · devel/sqlc/Portfile · 来源: api.github.com
安装
brew install sqlclocal Homebrew formula metadata
sudo port install sqlcMacPorts ports tree · devel/sqlc/Portfile · 来源: api.github.com
nix profile install nixpkgs#sqlcnixpkgs package indexes · pkgs/by-name/sq/sqlc/package.nix · 来源: api.github.com
sudo pacman -S sqlcArch Linux sync databases · sqlc · 来源: geo.mirror.pkgbuild.com
scoop install main/sqlcScoop official bucket manifest trees · bucket/sqlc.json · 来源: api.github.com
概览
Generate type safe Go from SQL
历史
sqlc is a command-line SQL compiler that generates type-safe application code from handwritten SQL queries. It began in the Go ecosystem and later expanded its generator model beyond Go.
The sqlc repository was created in 2019. Its first public GitHub release, v0.1.0, appeared in January 2020, followed by v1.0.0 in February 2020.
The project documentation now describes a configuration-driven compiler with support for PostgreSQL, MySQL, and SQLite inputs, plus generator plugins for languages beyond the original Go target.
sqlc found a niche among developers who wanted to keep SQL as the source of truth while avoiding hand-written row scanning and fragile stringly typed database code. The input package metadata lists Homebrew, MacPorts, Nix, Arch, and Scoop packaging, showing broad CLI distribution across Unix-like and Windows package-manager ecosystems.
A common workflow is to write schema and query SQL files, configure them in sqlc.yaml, sqlc.yml, or sqlc.json, and run sqlc to produce typed query methods used by application code.
Package nerds care about sqlc because it turns SQL into a build-time artifact. It fits neatly into reproducible developer environments, CI checks, and generated-code workflows without requiring a running ORM runtime.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.
sqlc.yamlsqlc.ymlsqlc.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
sqlc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/sqlc-dev/sqlc
安装元数据
| 软件包键 | brew:sqlc |
|---|---|
| 版本 | 1.31.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/sqlc |
| 主页 | https://sqlc.dev/ |
| 仓库 | https://github.com/sqlc-dev/sqlc |
| 上游文档 | https://docs.sqlc.dev/en/stable |
| 许可证 | MIT |
| 源码归档 | https://github.com/sqlc-dev/sqlc/archive/refs/tags/v1.31.1.tar.gz |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | sqlc |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sqlc
nix profile install nixpkgs#sqlcsqlc 1.31.1-1
Compile SQL to type-safe Go
sudo pacman -S sqlcsqlc
sudo port install sqlcmain/sqlc
scoop install main/sqlc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.