Safe SQLx Cache Updater

•
18
•

Safely updates SQLx offline query caches for Rust projects while preserving critical Enterprise Edition metadata.

The Safe SQLx Cache Updater skill provides a specialized workflow for maintaining SQLx offline query caches within the Windmill ecosystem. It addresses the critical issue where standard 'cargo sqlx prepare' commands delete existing cache files for features not currently being compiled, such as Enterprise Edition (EE) components. By implementing a robust 4-step process involving Git restoration and file comparison, this skill ensures that CI/CD pipelines remain stable by keeping query metadata complete across both Open Source and Enterprise feature sets.

Key Features

01Provides a safe 4-step workflow for the cargo sqlx prepare command
02Includes verification scripts to prevent accidental cache deletions
03Automates comparison between local and remote cache states
04Ensures CI/CD compatibility with SQLX_OFFLINE=true requirements
05Preserves Enterprise Edition SQLx caches during regeneration
0618 GitHub stars

Use Cases

01Resolving CI failures related to missing SQLx query metadata
02Updating SQL queries in hybrid OSS/Enterprise Rust backends
03Maintaining database query caches in complex Windmill environments