Exec executes the query.
(ctx context.Context)
| 640 | |
| 641 | // Exec executes the query. |
| 642 | func (u *TaskUpsertOne) Exec(ctx context.Context) error { |
| 643 | if len(u.create.conflict) == 0 { |
| 644 | return errors.New("ent: missing options for TaskCreate.OnConflict") |
| 645 | } |
| 646 | return u.create.Exec(ctx) |
| 647 | } |
| 648 | |
| 649 | // ExecX is like Exec, but panics if an error occurs. |
| 650 | func (u *TaskUpsertOne) ExecX(ctx context.Context) { |