newIntegrationMutation creates new mutation for the Integration entity.
(c config, op Op, opts ...integrationOption)
| 5519 | |
| 5520 | // newIntegrationMutation creates new mutation for the Integration entity. |
| 5521 | func newIntegrationMutation(c config, op Op, opts ...integrationOption) *IntegrationMutation { |
| 5522 | m := &IntegrationMutation{ |
| 5523 | config: c, |
| 5524 | op: op, |
| 5525 | typ: TypeIntegration, |
| 5526 | clearedFields: make(map[string]struct{}), |
| 5527 | } |
| 5528 | for _, opt := range opts { |
| 5529 | opt(m) |
| 5530 | } |
| 5531 | return m |
| 5532 | } |
| 5533 | |
| 5534 | // withIntegrationID sets the ID field of the mutation. |
| 5535 | func withIntegrationID(id uuid.UUID) integrationOption { |
no outgoing calls
no test coverage detected