...
/Wrapping Up: Make Multiple Changes with Transactions
Wrapping Up: Make Multiple Changes with Transactions
Review what we have learned about making multiple changes with transactions.
We'll cover the following...
We'll cover the following...
What we have learned?
Ecto has excellent support for database transactions via the Repo.transaction function.
- The last lesson explained how using
Ecto.Multiis preferable to using functions. However, cases do exist where callingtransactionwith a function works well. - If we’re only running a small