Searched here and did not find anything on this. Maybe it's easy but
not clear to me.

Want to add an optimistic lock check when doing a model update.
Realize this could be done in before_update, but that would be a
separate query from the actual update.

That is, just want to 'model.save', but under the hood it does a
'UPDATE ..., lock_id = lock_id + 1 WHERE lock_id = <original_lock_id>'

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to