mool 0.1.2

A source-first Rust database toolkit for typed SQL queries, migrations, and model metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "migrations")]
static MIGRATIONS: mool::EmbeddedMigrations =
    mool::embedded_migrations!("tests/fixtures/migrations");

#[cfg(feature = "migrations")]
fn main() {
    let source = mool::root_migration(&MIGRATIONS);
    assert_eq!(source.embedded().files.len(), 2);
}

#[cfg(not(feature = "migrations"))]
fn main() {}