-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose For Update
in a transaction context
#769
Comments
👍 |
@jinzhu hi, I see you marked a |
Excellent!
|
@marksalpeter how can i use "select for update" with gorm, I cannot find description in http://gorm.io/docs/ |
@huangzhiran
|
@huangzhiran sorry I didn't see this sooner |
Many times, when I perform an update, I use
for update
on a row to guarantee its synchronicity system wide. This is actually a very common thing to do within a transaction. Could something like this be added to the api? Here is an example of how I would like to use it:The text was updated successfully, but these errors were encountered: