migs 0.1.0

A SQL migration script collection library with compile-time registration
Documentation

Migs - A SQL migration script collection library

This library provides macros for registering SQL scripts at compile time and collecting them into a registry.

Example

use migs::{migs, collect, Migs};

// Register inline SQL (scope defaults to "init")
migs!(sql = "CREATE TABLE users (id INT)");

// Register inline SQL with explicit scope
migs!(sql = "CREATE TABLE {{name}} (id INT)", scope = "create");

// Collect all registered scripts
let all_scripts: Vec<&Migs> = collect!();