SQLx Offline Query Cache

SkillDev tools

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

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the SQLx Offline Query Cache skill

What this skill tells your AI

The instructions your AI receives, as published by ogkevin/cadmus in .agents/skills/sqlx/SKILL.md and read by ahel’s review.

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

  • DATABASE_URL must point to a migrated SQLite database
  • sqlx-cli must be available

Command

cargo sqlx prepare --all --workspace -- --tests

The -- --tests flag ensures #[cfg(test)] queries are also cached.

Verification

After regenerating:

cargo check --all-targets
cargo test --workspace

Commit the updated .sqlx/ files alongside the code changes.

Signals

GitHub stars
44
Forks
10
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
sqlx
Source
github.com/ogkevin/cadmus