Skip to main content

Module batch_rollback

Module batch_rollback 

Source

Functions§

batch_array_creates_rolls_back_on_failure
When a batch of array creates fails on one element (unique constraint), all prior successful creates are rolled back.
batch_create_and_update_rolls_back_on_update_failure
When a batch of a create + update fails on the update (unique constraint), the successful create is rolled back.
batch_different_models_rolls_back_on_failure
When a batch of different models fails on the second create, the first model’s create is rolled back too.
batch_two_creates_rolls_back_on_second_failure
When a batch of two creates fails on the second INSERT (unique constraint violation), the entire batch is rolled back — the first INSERT must not persist.
batch_update_and_create_rolls_back_on_create_failure
When a batch of an update + create fails on the create (unique constraint), the successful update is rolled back.