pub fn apply_dolt_patch(
conn: &GraphConnection,
patch: &[DoltPatchStatement],
) -> Result<()>Expand description
Applies ordered statements produced by load_dolt_patch as one transaction.
Schema and data statements are applied together in their native statement_order. Foreign key
enforcement remains enabled, but its checks are deferred until the transaction commits so
related rows may be changed in either order without allowing an invalid final state.