sofie-identity 0.4.0

Accounts, their area memberships, and signing up, in and out: the identity an app opts into.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use sofie::db::Db;
use sofie::sqlite::Sqlite;

#[tokio::test]
async fn its_tables_match_its_records_on_sqlite() {
    let db = Db::new(Sqlite::memory().unwrap());
    let migrations = [sofie_identity::migrations()];

    db.schema().migrate(&migrations).await.unwrap();

    let mismatches = db.schema().check(&migrations).await.unwrap();
    assert!(mismatches.is_empty(), "{mismatches:?}");
}