sqlx_migrator 0.18.0

Migrator for writing sqlx migration using Rust instead of SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub(crate) struct M0003Migration;

sqlx_migrator::sqlite_migration!(
    M0003Migration,
    "main",
    "m0003_use_macros",
    sqlx_migrator::vec_box![("main", "m0002_with_parents")],
    sqlx_migrator::vec_box![(
        "INSERT INTO sample (id, name) VALUES (999, 'Another text')",
        "DELETE FROM sample WHERE id = 999"
    )]
);