Update updates column with value using callbacks. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields
(column string, value interface{})
| 411 | |
| 412 | // Update updates column with value using callbacks. Reference: https://gorm.io/docs/update.html#Update-Changed-Fields |
| 413 | func (db *DB) Update(column string, value interface{}) (tx *DB) { |
| 414 | tx = db.getInstance() |
| 415 | tx.Statement.Dest = map[string]interface{}{column: value} |
| 416 | return tx.callbacks.Update().Execute(tx) |
| 417 | } |
| 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) { |
nothing calls this directly
no test coverage detected