...

/

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.

What we have learned?

Ecto has excellent support for database transactions via the Repo.transaction function.

  • The last lesson explained how using Ecto.Multi is preferable to using functions. However, cases do exist where calling transaction with a function works well.
  • If we’re only running a small
...