Module tx_atomic_stmt

Module tx_atomic_stmt 

Source

Modules§

multi_op_create_wraps_in_transaction
rmw_condition_failure_issues_rollback_to_savepoint
rmw_uses_savepoints
single_op_skips_transaction
update_with_new_association_rolls_back_on_failure

Functions§

create_with_has_many_rolls_back_on_failure
When the second INSERT in a has_many create plan fails (unique constraint), the driver should receive Transaction::Rollback and no orphaned user should remain in the database.
create_with_has_one_rolls_back_on_failure
Same rollback guarantee for a has_one association create.