Updates updates attributes using callbacks. values must be a struct or map. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields
(values interface{})
| 418 | |
| 419 | // Updates updates attributes using callbacks. values must be a struct or map. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields |
| 420 | func (db *DB) Updates(values interface{}) (tx *DB) { |
| 421 | tx = db.getInstance() |
| 422 | tx.Statement.Dest = values |
| 423 | return tx.callbacks.Update().Execute(tx) |
| 424 | } |
| 425 | |
| 426 | func (db *DB) UpdateColumn(column string, value interface{}) (tx *DB) { |
| 427 | tx = db.getInstance() |
nothing calls this directly
no test coverage detected