Introduction
Transactions help keep your data safe by making sure a group of actions all finish together or none at all.
When saving multiple related records that must all succeed or fail together.
When updating several tables and you want to avoid partial changes.
When transferring money between accounts to prevent losing or duplicating funds.
When deleting data that affects other connected data and you want to keep consistency.