April 2019
Beginner to intermediate
244 pages
6h 34m
English
We did a deep dive into the Ecto.Changeset module, and saw the many functions it provides to help us manage making changes to our data. With its support for associations, changesets can modify related records across multiple tables, allowing us to make complicated changes with just a few lines of code.
But sometimes, we need to make even more complex changes. We might need to change several unrelated records and make sure that they all change together. For these types of situations, Ecto gives us transactions and the Multi module—we’ll take a look at those next.
Read now
Unlock full access