sqlx
Regenerate `.sqlx/` cached metadata when adding or modifying `sqlx::query!`, `sqlx::query_as!`, or `sqlx::query_scalar!` macros.
от OGKevin★ 55 звёзд на GitHub
Установить sqlx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SQLx Offline Query Cache
Regenerate .sqlx/ cached metadata when adding or modifying sqlx::query!,
sqlx::query_as!, or sqlx::query_scalar! macros.
When to use
- New typed SQLx macro introduced
- Existing query string changed
- Schema migration added or altered
Prerequisites
sqlx-cliandsqlite3onPATH(both are in the devenv shell)
Do not set DATABASE_URL. cargo xtask sqlx-prepare creates a temporary
SQLite file, applies crates/core/migrations, then applies
crates/core/dictionary/migrations, and points cargo sqlx prepare at that
file. One crate build can describe queries against only one URL
(sqlx#916). The dictionary
migrator is not run on the temporary file: both migrators use version 1 in
_sqlx_migrations. The app migrates dictionary.sqlite on its own.
Command
cargo xtask sqlx-prepare
The command passes -- --tests so #[cfg(test)] queries are cached, and sets
SQLX_OFFLINE=false for that process only. devenv keeps SQLX_OFFLINE=true
for normal builds.
Verification
After regenerating, run the normal emulator-feature checks:
cadmuscli clippy --features emulator
cadmuscli test --features emulator
A device feature is required because workspace defaults do not enable one.
Complete the formatting and Kobo-build steps in the root verification
sequence, and commit the updated .sqlx/ files
alongside the query or migration changes.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sqlx?
Regenerate `.sqlx/` cached metadata when adding or modifying `sqlx::query!`, `sqlx::query_as!`, or `sqlx::query_scalar!` macros.
Как установить скилл sqlx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sqlx запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…