Command Palette

Search for a command to run...

Назад к скиллам
скилл № 58021

sqlx

Regenerate `.sqlx/` cached metadata when adding or modifying `sqlx::query!`, `sqlx::query_as!`, or `sqlx::query_scalar!` macros.

БесплатноБез исполняемых скриптов
OGKevinот 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-cli and sqlite3 on PATH (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), без исполняемых скриптов.

Похожие скиллы

Сравнить sqlx с