pkg.soopen package index

brew / 排名 1494

使用 Homebrew, MacPorts, Nix, pacman, scoop 安装 sqlc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install sqlc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install sqlc

MacPorts ports tree · devel/sqlc/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#sqlc

nixpkgs package indexes · pkgs/by-name/sq/sqlc/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S sqlc

Arch Linux sync databases · sqlc · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install main/sqlc

Scoop official bucket manifest trees · bucket/sqlc.json · 来源: api.github.com

概览

软件包摘要

Generate type safe Go from SQL

命令和别名

  • sqlc

历史

项目历史与用法

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.

时间线

  • 2019: GitHub repository created.
  • 2020: v0.1.0 released.
  • 2020: v1.0.0 released.
  • Current docs: configuration centers on sqlc.(yaml|yml) or sqlc.json and supports plugins and multiple language targets.

Related projects

  • The SQLBoiler README lists sqlc as an alternative for users who want type-safe SQL-generated code without an ORM model. sqlc's own README lists sqlc-gen-go, sqlc-gen-kotlin, sqlc-gen-python, and sqlc-gen-typescript as supported language generator projects.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:sql

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
sqlc.yamlsqlc.ymlsqlc.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
sqlc可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本1.31.1
管理器更新时间2026-07-26
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:sqlc
版本1.31.1
软件包管理器Homebrew
主页https://sqlc.dev/
仓库https://github.com/sqlc-dev/sqlc
最后更新2026-07-26T04:03:45+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

sqlc

nix profile install nixpkgs#sqlc
  • normalized package name match
  • 匹配方式:Sqlc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sq/sqlc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
pacman95%

sqlc 1.31.1-1

Compile SQL to type-safe Go

https://sqlc.dev

sudo pacman -S sqlc
  • License: MIT
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Sqlc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: sqlc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

sqlc

sudo port install sqlc
  • normalized package name match
  • 匹配方式:Sqlc
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/sqlc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/sqlc

scoop install main/sqlc
  • normalized package name match
  • 匹配方式:Sqlc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/sqlc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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