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
Luxaritas15mo ago
Yup - should be select(…).for('update')
Gavin
GavinOP15mo ago
Oh, nice :). Thank you!
Want results from more Discord servers?
Add your server