AddField appends a new field adder to the update spec.
(column string, t field.Type, value driver.Value)
| 823 | |
| 824 | // AddField appends a new field adder to the update spec. |
| 825 | func (u *UpdateSpec) AddField(column string, t field.Type, value driver.Value) { |
| 826 | u.Fields.Add = append(u.Fields.Add, &FieldSpec{ |
| 827 | Column: column, |
| 828 | Type: t, |
| 829 | Value: value, |
| 830 | }) |
| 831 | } |
| 832 | |
| 833 | // ClearField appends a new field cleaner (set to NULL) to the update spec. |
| 834 | func (u *UpdateSpec) ClearField(column string, t field.Type) { |
no outgoing calls
no test coverage detected