Published May 13, 2019
In this episode let’s take a look at
Ecto.Multi, which is a data structure that lets us compose, introspect, and run proper SQL database transactions with Elixir. Transactions are great because they allow us to create multiple database records in a single operation. A single transaction containing multiple operations is more efficient as well as safer than running multiple database operations individually.
Let’s get started by…