Let's Learn AdonisJS 6: Ep 10.2 - Saving All Or Nothing with Database Transactions

Опубликовано: 07 Апрель 2026
на канале: Adocasts
520
17

Learn how to save all or nothing with database transactions

👍 If You Enjoy This Video, Consider Hitting The Like Button!

👨‍💻 Series Source Code: https://github.com/adocasts/lets-lear...

🥁 Subscribe To Stay Notified For New Videos: https://www.youtube.com/adocasts?sub_...

Subscribe to Adocasts Plus to gain access to all our lessons and more!
https://adocasts.com/pricing

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.

⏰ Timestamps
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

------------------------- Socials --------------------------

Website: https://adocasts.com
Threads: https://threads.net/@adocasts
Twitter:   / adocasts  
GitHub: https://github.com/adocasts