newCASMappingMutation creates new mutation for the CASMapping entity.
(c config, op Op, opts ...casmappingOption)
| 3172 | |
| 3173 | // newCASMappingMutation creates new mutation for the CASMapping entity. |
| 3174 | func newCASMappingMutation(c config, op Op, opts ...casmappingOption) *CASMappingMutation { |
| 3175 | m := &CASMappingMutation{ |
| 3176 | config: c, |
| 3177 | op: op, |
| 3178 | typ: TypeCASMapping, |
| 3179 | clearedFields: make(map[string]struct{}), |
| 3180 | } |
| 3181 | for _, opt := range opts { |
| 3182 | opt(m) |
| 3183 | } |
| 3184 | return m |
| 3185 | } |
| 3186 | |
| 3187 | // withCASMappingID sets the ID field of the mutation. |
| 3188 | func withCASMappingID(id uuid.UUID) casmappingOption { |
no outgoing calls
no test coverage detected