Exec executes the query.
(ctx context.Context)
| 696 | |
| 697 | // Exec executes the query. |
| 698 | func (u *GitCommitUpsertOne) Exec(ctx context.Context) error { |
| 699 | if len(u.create.conflict) == 0 { |
| 700 | return errors.New("ent: missing options for GitCommitCreate.OnConflict") |
| 701 | } |
| 702 | return u.create.Exec(ctx) |
| 703 | } |
| 704 | |
| 705 | // ExecX is like Exec, but panics if an error occurs. |
| 706 | func (u *GitCommitUpsertOne) ExecX(ctx context.Context) { |