ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 624 | |
| 625 | // ExecX is like Exec, but panics if an error occurs. |
| 626 | func (nuo *NodeUpdateOne) ExecX(ctx context.Context) { |
| 627 | if err := nuo.Exec(ctx); err != nil { |
| 628 | panic(err) |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | // defaults sets the default values of the builder before save. |
| 633 | func (nuo *NodeUpdateOne) defaults() error { |