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 (nd *NodeDelete) ExecX(ctx context.Context) int { |
| 35 | n, err := nd.Exec(ctx) |
| 36 | if err != nil { |
| 37 | panic(err) |
| 38 | } |
| 39 | return n |
| 40 | } |
| 41 | |
| 42 | func (nd *NodeDelete) sqlExec(ctx context.Context) (int, error) { |
| 43 | _spec := sqlgraph.NewDeleteSpec(node.Table, sqlgraph.NewFieldSpec(node.FieldID, field.TypeInt)) |