macOS
brew install sqlx-clilocal Homebrew formula metadata
安装
brew install sqlx-clilocal Homebrew formula metadata
nix profile install nixpkgs#sqlx-clinixpkgs package indexes · pkgs/by-name/sq/sqlx-cli/package.nix · 来源: api.github.com
sudo pacman -S sqlx-cliArch Linux sync databases · sqlx-cli · 来源: geo.mirror.pkgbuild.com
sudo apk add cargo-sqlxAlpine Linux edge package indexes · cargo-sqlx · 来源: dl-cdn.alpinelinux.org
概览
Command-line utility for SQLx, the Rust SQL toolkit
历史
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.
安全态势
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.
Credential-bearing paths to review before unattended agent runs.
.env可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-sqlx | cli | 全局可执行文件 | |
sqlx | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/transact-rs/sqlx
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 构建依赖 | pkgconf, rust |
| 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 | sqlx-cli |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
sqlx-cli
nix profile install nixpkgs#sqlx-clisqlx-cli 0.9.0-1
Command-line utility for SQLx, the Rust SQL toolkit
https://github.com/launchbadge/sqlx
sudo pacman -S sqlx-clicargo-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-sqlxsqlx 0.8.6-r0
Command-line utility for SQLx, the Rust SQL toolkit
https://github.com/launchbadge/sqlx
sudo apk add sqlxsqlx-bash-completion 0.8.6-r0
Bash completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-bash-completionsqlx-doc 0.8.6-r0
Command-line utility for SQLx, the Rust SQL toolkit (documentation)
https://github.com/launchbadge/sqlx
sudo apk add sqlx-docsqlx-fish-completion 0.8.6-r0
Fish completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-fish-completionsqlx-zsh-completion 0.8.6-r0
Zsh completions for sqlx
https://github.com/launchbadge/sqlx
sudo apk add sqlx-zsh-completion来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.