pub fn restore_plan(
schema: &AppSchema,
current: &[Record],
restored: &[Record],
limits: SnapshotLimits,
counts: &[RestoreCount],
) -> Result<Vec<Mutation>, DatabaseError>Expand description
A restore plan may execute only in the transaction that read its current records. It preserves numeric identities and checks references before any write.