Will Drizzle throw when we attempt to update and zero records where updated?

Lets say we have a query where we update where id = input.id. If there was no row where that criteria is met, will Drizzle throw? or will it go through? Thanks!
2 Replies
KirbyTwister
KirbyTwister6mo ago
Update doesn't check if the record exists, so it will go through without any effect
DYELbrah
DYELbrah6mo ago
Sweet, I will have to run .returning() and ensure the right number of records are returned else throw in transaction
Want results from more Discord servers?
Add your server