Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix 安装 sql-migrate

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install sql-migrate

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install sql-migrate

Debian stable package indexes · sql-migrate · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#sql-migrate

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

概览

软件包摘要

SQL schema migration tool for Go

命令和别名

  • sql-migrate

历史

项目历史与用法

sql-migrate is a Go SQL schema migration tool that can be used as either a standalone CLI or an importable Go library. Its README describes it as based on gorp and goose, with migrations written directly in SQL.

项目历史

The public GitHub repository was created in September 2014, in the period when Go database tooling was maturing around small command-line programs and libraries. The project kept the classic migration commands: `up`, `down`, `redo`, `status`, and `new`.

采用历史

The project accumulated broad package-manager availability in the supplied package facts, including Homebrew, Debian, Ubuntu, and Nix. Its GitHub repository also shows thousands of stars, indicating durable use beyond a single distribution channel.

使用方式

As a CLI, sql-migrate reads `dbconfig.yml` by default, selects an environment with `-env`, and applies or rolls back SQL migration files. As a Go library, it can run migrations from memory, a folder, embedded assets, or an HTTP filesystem, which made it useful for Go applications that wanted migration logic inside the binary.

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

For package-manager culture, sql-migrate represents the Go tradition of shipping one small static-ish executable that can also serve as a library. Package maintainers care because database migration tools sit in deployment paths, and users often want the exact same binary available in local development, CI, and server provisioning.

时间线

  • 2014: GitHub repository created.
  • 2014: README examples show migration status output and timestamped SQL migration files.
  • 2020s: README documents Go module-era installation with `go install ...@latest` for Go 1.18 and later.
  • 2026: Repository remained active according to GitHub metadata.

Related projects

  • The README explicitly says sql-migrate is based on gorp and goose and works well with sqlx. It also documents database drivers for SQLite, PostgreSQL, MySQL, MSSQL, and Oracle.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:sql

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

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
dbconfig.yml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
dbconfig.yml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
sql-migratecli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.8.1
管理器更新时间
本地数据OK
上游当前
检测到的最新版本v1.8.1

https://github.com/rubenv/sql-migrate

  • 信息No package-manager update timestamp was available.低 置信度

安装元数据

软件包元数据

软件包键brew:sql-migrate
版本1.8.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/sql-migrate
主页https://github.com/rubenv/sql-migrate
仓库https://github.com/rubenv/sql-migrate
上游文档https://github.com/rubenv/sql-migrate#readme
许可证MIT
源码归档https://github.com/rubenv/sql-migrate/archive/refs/tags/v1.8.1.tar.gz
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namesql-migrate
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

sql-migrate 0.0~git20191213.0633851-3+b16

SQL schema migration tool for Go (program)

https://github.com/rubenv/sql-migrate

sudo apt install sql-migrate
  • Section: devel
  • Architecture: amd64
  • Source Package: golang-github-rubenv-sql-migrate
  • 2 依赖
  • normalized package name match
  • 匹配方式:Sql Migrate
Debian stable package indexes · deb.debian.org · Debian stable package indexes: sql-migrate from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

sql-migrate

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

sql-migrate 0.0~git20191213.0633851-3build1

SQL schema migration tool for Go (program)

https://github.com/rubenv/sql-migrate

sudo apt install sql-migrate
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: golang-github-rubenv-sql-migrate
  • 2 依赖
  • normalized package name match
  • 匹配方式:Sql Migrate
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: sql-migrate from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment