Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #10.2

Saving All Or Nothing with Database Transactions

In This Lesson

We'll learn about database transactions and how we can use them to batch commit or rollback updates, safeguarding against partial updates due to errors.

Created by
@tomgobich
Published

🕰️ Chapters
00:00 - Demoing Why You'd Use A Transaction
00:51 - What Is A Database Transaction?
01:08 - Creating A Database Transaction
02:00 - Binding Our Transaction To Our Database Operations
03:14 - Demoing A Transaction In Action
04:22 - Displaying An Error On Transaction Rollback

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!