Comment From: longbozhan

应该不支持,看看能否把这个特性加上去 @jinzhu

Comment From: chenyu1990

Updates(map[string]interface{}{
    "total": gorm.Expr("total + ?", increase.Total),
    "left":  gorm.Expr("left + ?", increase.Left),
})

Comment From: github-actions[bot]

This issue will be automatically closed because it is marked as GORM V1 issue, we have released the public testing GORM V2 release and its documents https://v2.gorm.io/docs/ already, the testing release has been used in some production services for a while, and going to release the final version in following weeks, we are still actively collecting feedback before it, please open a new issue for any suggestion or problem, thank you

Also check out https://github.com/go-gorm/gorm/wiki/GORM-V2-Release-Note-Draft for how to use the public testing version and its changelog

Comment From: icpd

optimistic lock plugin https://github.com/go-gorm/optimisticlock