Exec executes the query.
(ctx context.Context)
| 1055 | |
| 1056 | // Exec executes the query. |
| 1057 | func (u *MachineUpsertOne) Exec(ctx context.Context) error { |
| 1058 | if len(u.create.conflict) == 0 { |
| 1059 | return errors.New("ent: missing options for MachineCreate.OnConflict") |
| 1060 | } |
| 1061 | return u.create.Exec(ctx) |
| 1062 | } |
| 1063 | |
| 1064 | // ExecX is like Exec, but panics if an error occurs. |
| 1065 | func (u *MachineUpsertOne) ExecX(ctx context.Context) { |