SQLx Knowledge Patch

•
24
•

Guides modern Rust SQLx upgrades, dynamic query safety, and database configuration across PostgreSQL, MySQL, and SQLite.

The SQLx Knowledge Patch equips Claude with up-to-date knowledge for SQLx v0.9, bridging the gap past LLM training cutoffs to navigate breaking changes, modern dependency structures, and engine-specific quirks. It provides actionable guidance for transitioning separated runtime and TLS features, enforcing query security boundaries with AssertSqlSafe, configuring per-crate sqlx.toml files, handling SQLite thread boundary shifts, and adapting PostgreSQL and MySQL driver behaviors. This skill is essential for Rust engineers updating legacy database layers, resolving compile-time query macro errors, or architecting robust database migrations.

主な機能

01Guides migration away from legacy runtime-and-TLS combo features to distinct runtime and crypto providers
02Enforces runtime query injection safety rules using AssertSqlSafe and modernized dynamic query constructs
0324 GitHub stars
04Supplies an actionable 10-point checklist for seamlessly upgrading codebases to SQLx 0.9
05Highlights database-specific breaking changes across PostgreSQL, MySQL, and SQLite threading boundaries
06Provides configuration patterns for per-crate sqlx.toml offline modes, migration settings, and macro overrides

ユースケース

01Troubleshooting complex compilation errors in SQLx compile-time query macros, derives, and migrations
02Upgrading legacy Rust backend services from SQLx 0.7 or 0.8 to SQLx 0.9 without build breakages
03Refactoring dynamic query builders to comply with SqlSafeStr assertions and proper parameterization