Convenient Prisma Transactions
summary
Prisma ORM’s transaction API is safe but low-level; the talk shows how to make transactions declarative and more convenient by using decorators (new or legacy decorator syntax) to wrap and simplify transactional code.
AI-written summary · about
chapters (19)
- 0:00Welcome
- 1:30Introduction
- 2:12Prisma transactions
- 4:39ORM transaction comparison
- 6:51Clean architecture issues
- 8:14Implementation without transactions
- 9:20Current problems
- 11:27Solution: Local Storage
- 12:32Prisma Service for transactions
- 13:56Improved service & repo
- 14:40getPrismaClient method
- 15:01runTransaction method
- 16:28Nested transaction complexity
- 17:31Spring approach comparison
- 18:35Decorator benefits
- 19:38Decorator implementation
- 21:49Modern JavaScript decorators
- 22:51Decorator for new decorators
- 23:36Summary & Q&A








