ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 32 | |
| 33 | // ExecX is like Exec, but panics if an error occurs. |
| 34 | func (gcd *GitCommitDelete) ExecX(ctx context.Context) int { |
| 35 | n, err := gcd.Exec(ctx) |
| 36 | if err != nil { |
| 37 | panic(err) |
| 38 | } |
| 39 | return n |
| 40 | } |
| 41 | |
| 42 | func (gcd *GitCommitDelete) sqlExec(ctx context.Context) (int, error) { |
| 43 | _spec := sqlgraph.NewDeleteSpec(gitcommit.Table, sqlgraph.NewFieldSpec(gitcommit.FieldID, field.TypeUUID)) |