More Oregano Please
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Seems so indeed.
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
By the way I noticed that
prisma: TransactionClient
is checked just as prisma: Prisma.Client
. Is there a way of making functions that accept only one reject the other?12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
Yup, that's very much what I had in mind! I need to test more thoroughly though, in my previous attempt the idea was blocked by a few failing tests.
12 replies
PPrisma
•Created by Jon Higger (He / Him) on 11/12/2024 in #help-and-questions
Do transactions work when you nest them?
@RaphaelEtim I had the same question as OP and the follow up question is of course: if all my async function admit of an argument that is either the original prisma connection handler or transaction handler (both exposed by the top-level calling function), in theory all my async functions can be run against either the transaction API or the regular, non-transactional API, correct?
12 replies