What does wrapping my queries within with transaction do exactly? I'm not very familiar with how databases work
t
Toshihiro Nakamura
02/16/2023, 11:42 PM
Query construction is not directly related to transactions. It is the same whether the query is constructed outside or inside a transaction.
However, you should perform the query execution inside a transaction.