本文へ移動
cccskills
無料GitHub で公開

sqlx

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

インストール方法を見る

含まれるファイル(1)

  • SKILL.md853 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

docs

無料

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

日本語の概要は準備中です。原文の説明を表示しています。

OGKevin/cadmus472026年10月10日 更新

OGKevin のスキルをすべて見る

このスキルの問題を報告する