We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
We recently had some internal discussions about Ecto.Multis. One co-worker claimed to have never really understood them, another wrote an advanced blog post on them! I felt somewhere in between. So I thought I'd put together a primer outlining my understanding and exploring other aspects I was less familiar with from a high level.
What is an Ecto.Multi?
A built-in tool that strings together database changes.
A Multi is a data structure provided by Ecto that acts as a single unit, a compound function, putting several sub-functions together as one. These are often used for database transactions (changes) but can include anything you might want.
The uniqueness of a Multi is that it is a single unit, all of the parts included therein fail or succeed as one. All or nothing.
continue reading on smartlogic.io
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.