pub async fn upsert_from_snapshot(
conn: &mut PgConnection,
snapshot: &ReferenceSnapshot,
) -> ModelResult<()>Expand description
Writes the snapshot to the reference, creating it with the snapshot’s id if it does not exist and bringing it back if it is deleted.