Serializable isolation level - for update selects

Hi, Is there a way to add "for update" to the end of the query to help with serializable transactions? Without it, we cannot read then later update the same record in a transaction in postgres. So far, I've just written out the sql myself and lose most of the types.
2 Replies
Luxaritas
Luxaritas14mo ago
Yup - should be select(…).for('update')
Gavin
GavinOP14mo ago
Oh, nice :). Thank you!
Want results from more Discord servers?
Add your server