sqlx-migrations

Community

Safe SQLx migrations with CLI or embed.

Authoradelabdelgawad
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies and secures the management of SQLx migrations by enforcing a consistent workflow, embedding migrations in binaries when desired, and providing a safe CLI path for deployment.

Core Features & Use Cases

  • File naming convention for migrations (timestamped up migrations) to ensure deterministic order.
  • Destructive DDL safety: require marker -- @destructive on the first line of destructive migrations.
  • Dual deployment strategies: compile-time embedding via sqlx::migrate!() and sqlx-cli at deploy.
  • CI validation: automated checks to ensure migrations apply cleanly in fresh databases.

Quick Start

Create a new migration with sqlx migrate add <name> and enable compile-time embedding with sqlx::migrate!() in your startup code.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sqlx-migrations
Download link: https://github.com/adelabdelgawad/rust-fullstack-agents/archive/main.zip#sqlx-migrations

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.