Automic VaultAutomic Vault

brew

使用 Homebrew, Nix, pacman, apk 安装 sqlx-cli

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install sqlx-cli

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#sqlx-cli

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

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

Arch Linux sync databases · sqlx-cli · 来源: geo.mirror.pkgbuild.com

Alpine Linux apk已验证 · 92%
sudo apk add cargo-sqlx

Alpine Linux edge package indexes · cargo-sqlx · 来源: dl-cdn.alpinelinux.org

概览

软件包摘要

Command-line utility for SQLx, the Rust SQL toolkit

命令和别名

  • cargo-sqlx
  • sqlx

历史

项目历史与用法

sqlx-cli is the command-line companion to SQLx, the Rust SQL toolkit, used for database management, migrations, and offline query metadata generation.

项目历史

The SQLx repository's official README describes SQLx as an async, pure-Rust SQL crate with optional compile-time checked queries and support for PostgreSQL, MySQL, MariaDB, and SQLite. The sqlx-cli README describes the CLI as SQLx's associated command-line utility for managing databases, migrations, and offline mode for query macros.

Official repository metadata places the SQLx project in public GitHub development from late 2019. The CLI became important because SQLx's compile-time query checking creates a developer workflow need: capture query metadata with cargo sqlx prepare so projects can build without a live development database.

采用历史

The supplied package-manager facts show sqlx-cli distributed as sqlx-cli or cargo-sqlx through Homebrew, Alpine, Nix, and Arch. That packaging matters because Rust users often need the executable in CI images and developer shells even when the application itself depends on SQLx as a library.

使用方式

The official sqlx-cli README documents cargo install options by database backend and TLS stack, DATABASE_URL via command-line option, environment, or .env file, database create/drop commands, migration creation and execution, reversible migrations, cargo sqlx prepare, the .sqlx metadata directory, and prepare --check for CI.

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

Package nerds care about sqlx-cli because it bridges Rust's compile-time SQL checking with ordinary package-manager workflows. It is a CLI that must stay version-compatible with a Rust library, database drivers, TLS choices, and CI environments.

时间线

  • 2019: Official repository metadata reports SQLx public repository creation.
  • 2020: Public issue history shows early CLI design work around cargo-sqlx and migration commands.
  • 2021: The sqlx-cli README documents reversible migrations using timestamped up/down SQL files.
  • 2023: Changelog notes offline query metadata moving toward one file per query invocation.
  • 2026: Latest crate/docs metadata continues to describe sqlx-cli as SQLx's command-line utility.

Related projects

  • sqlx-cli is tightly coupled to SQLx query macros, Rust's cargo workflow, and database backends including PostgreSQL, MySQL/MariaDB, and SQLite.

安全态势

风险级别: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 个平台目标。
  • 构建元数据列出 2 个构建依赖。

建议审查

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

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.

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
.env

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://github.com/transact-rs/sqlx

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:sqlx-cli
版本0.9.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/sqlx-cli
主页https://github.com/transact-rs/sqlx
仓库https://github.com/transact-rs/sqlx
上游文档https://github.com/transact-rs/sqlx#readme
许可证Apache-2.0 OR MIT
源码归档https://github.com/transact-rs/sqlx/archive/refs/tags/v0.9.0.tar.gz
最后更新2026-07-04T16:53:45+09:00
Pulseupdated
构建依赖pkgconf, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

sqlx-cli

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

sqlx-cli 0.9.0-1

Command-line utility for SQLx, the Rust SQL toolkit

https://github.com/launchbadge/sqlx

sudo pacman -S sqlx-cli
  • License: Apache-2.0 AND MIT
  • Architecture: x86_64
  • 4 依赖
  • normalized package name match
  • 匹配方式:Sqlx Cli
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: sqlx-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
apk92%

cargo-sqlx 0.8.6-r0

Command-line utility for SQLx, the Rust SQL toolkit - cargo subcommand

https://github.com/launchbadge/sqlx

sudo apk add cargo-sqlx
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Cargo Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-sqlx from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

sqlx 0.8.6-r0

Command-line utility for SQLx, the Rust SQL toolkit

https://github.com/launchbadge/sqlx

sudo apk add sqlx
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqlx from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

sqlx-bash-completion 0.8.6-r0

Bash completions for sqlx

https://github.com/launchbadge/sqlx

sudo apk add sqlx-bash-completion
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • installed executable or alias match
  • 匹配方式:Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqlx-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

sqlx-doc 0.8.6-r0

Command-line utility for SQLx, the Rust SQL toolkit (documentation)

https://github.com/launchbadge/sqlx

sudo apk add sqlx-doc
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • installed executable or alias match
  • 匹配方式:Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqlx-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

sqlx-fish-completion 0.8.6-r0

Fish completions for sqlx

https://github.com/launchbadge/sqlx

sudo apk add sqlx-fish-completion
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • installed executable or alias match
  • 匹配方式:Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqlx-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

sqlx-zsh-completion 0.8.6-r0

Zsh completions for sqlx

https://github.com/launchbadge/sqlx

sudo apk add sqlx-zsh-completion
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: sqlx
  • installed executable or alias match
  • 匹配方式:Sqlx
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: sqlx-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.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