macOS
brew install sqlclocal Homebrew formula metadata
sudo port install sqlcMacPorts ports tree · devel/sqlc/Portfile · source: api.github.com
brew
Generate type safe Go from SQL. Version 1.31.1 via Homebrew; verified 2026-04-22.
install
brew install sqlclocal Homebrew formula metadata
sudo port install sqlcMacPorts ports tree · devel/sqlc/Portfile · source: api.github.com
nix profile install nixpkgs#sqlcnixpkgs package indexes · pkgs/by-name/sq/sqlc/package.nix · source: api.github.com
sudo pacman -S sqlcArch Linux sync databases · sqlc · source: geo.mirror.pkgbuild.com
scoop install main/sqlcScoop official bucket manifest trees · bucket/sqlc.json · source: api.github.com
overview
Generate type safe Go from SQL
history
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
sqlc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/sqlc-dev/sqlc
install metadata
| Package key | brew:sqlc |
|---|---|
| Version | 1.31.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/sqlc |
| Homepage | https://sqlc.dev/ |
| Repository | https://github.com/sqlc-dev/sqlc |
| Upstream docs | https://docs.sqlc.dev/en/stable |
| License | MIT |
| Source archive | https://github.com/sqlc-dev/sqlc/archive/refs/tags/v1.31.1.tar.gz |
| Last updated | 2026-04-22T16:58:03Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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/sqlcsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.