magic_sync 0.1.1

Keeps partial copies of PostgreSQL tables on SQLite replicas — offline-first, by comparing what each replica holds with what it should hold
Documentation
1
2
3
4
5
6
7
8
9
10
#[derive(sqlx::FromRow, Clone, magic_sync::Row)]
#[row(table = "screens", mirror = "setting", key = "replica_id, id", origin = "replica_id")]
pub struct Screen {
    pub replica_id: uuid::Uuid,
    pub id: uuid::Uuid,
    #[row(desired)]
    pub level: i64,
}

fn main() {}