safe-migrate 0.8.0

Check PostgreSQL migrations against a synchronized database baseline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use safe_migrate::api;

#[test]
fn public_api_analyzes_with_only_supported_reexports() {
    let outcome = api::analyze(
        api::Config::default(),
        "migration.sql",
        "",
        api::DbCache::new(),
    )
    .expect("the supported API should accept a valid empty migration");

    assert!(outcome.findings.is_empty());
    assert!(outcome.evidence.is_empty());
}