(values interface{})
| 431 | } |
| 432 | |
| 433 | func (db *DB) UpdateColumns(values interface{}) (tx *DB) { |
| 434 | tx = db.getInstance() |
| 435 | tx.Statement.Dest = values |
| 436 | tx.Statement.SkipHooks = true |
| 437 | return tx.callbacks.Update().Execute(tx) |
| 438 | } |
| 439 | |
| 440 | // Delete deletes value matching given conditions. If value contains primary key it is included in the conditions. If |
| 441 | // value includes a deleted_at field, then Delete performs a soft delete instead by setting deleted_at with the current |