ClearField appends a new field cleaner (set to NULL) to the update spec.
(column string, t field.Type)
| 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) { |
| 835 | u.Fields.Clear = append(u.Fields.Clear, &FieldSpec{ |
| 836 | Column: column, |
| 837 | Type: t, |
| 838 | }) |
| 839 | } |
| 840 | |
| 841 | // UpdateNode applies the UpdateSpec on one node in the graph. |
| 842 | func UpdateNode(ctx context.Context, drv dialect.Driver, spec *UpdateSpec) error { |
no outgoing calls
no test coverage detected