Skip to main content

diff_snapshot_vs_database

Function diff_snapshot_vs_database 

Source
pub fn diff_snapshot_vs_database(
    snapshot: &Snapshot,
    db: &Database,
) -> Result<SnapshotDiff>
Expand description

Compare a snapshot against the current database state.

Returns a diff where:

  • “added” = records in DB but not in snapshot
  • “removed” = records in snapshot but not in DB
  • “modified” = records with same key but different values