How database transactions work in Ecto and why Elixir makes it awesome?
source link: https://dev.to/curiosum_dev/how-database-transactions-work-in-ecto-and-why-elixir-makes-it-awesome-b75
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Posted on Oct 22
How database transactions work in Ecto and why Elixir makes it awesome?
Today we're going to look at how Ecto, which is Elixir's first-choice database access library, addresses the issue of handling database transactions. We'll briefly introduce you to the very concept of transaction, then focus on describing the Ecto way of handling them, and explaining how it feels superior to what other languages' libraries offer us in this department. We'll give plenty of examples corresponding to a simple app you can pull from our GitHub repository, so you can have some fun testing it out! Read more...
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK