Skip to content
cccskills
FreePublished on GitHub

sqlx

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md853 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

  • 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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Build Cadmus on Linux and macOS hosts using xtask. Use when asked how to compile, test, lint, or run the project locally.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

Build, test, and lint Cadmus from a jj sibling workspace that has no .git (non-colocated checkout). Use when jj workspace root is a sibling tmp/agent workspace and builds fail with git submodule or .gitmodules errors, empty thirdparty/ sources, cache-marker misses, or missing sqlite.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

Cross-compile Cadmus for Kobo e-reader devices (ARM Linux). Use this when asked to build a Kobo release, cross-compile for ARM, or prepare a device binary.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

Run clippy locally and report only issues in the current diff, matching the CI reviewdog flow. Use when asked how to lint changed code or get clippy feedback on a branch before pushing.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

Resolve failed Renovate or Dependabot dependency update PRs by fixing version constraints, API breaking changes, and verifying build/test/format compliance. Use when a dependency bump PR fails CI, Cargo cannot select versions, or a crate update requires code migration.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

docs

Free

Build the full Cadmus documentation website (mdBook + cargo doc + Storybook + Next.js). Use this when asked to build, preview, or update the documentation site.

The English summary is being prepared. Showing the original description.

OGKevin/cadmus50Updated Oct 20, 2026

See all skills by OGKevin

Report a problem with this skill