SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 609 | |
| 610 | // SaveX is like Save, but panics if an error occurs. |
| 611 | func (nuo *NodeUpdateOne) SaveX(ctx context.Context) *Node { |
| 612 | node, err := nuo.Save(ctx) |
| 613 | if err != nil { |
| 614 | panic(err) |
| 615 | } |
| 616 | return node |
| 617 | } |
| 618 | |
| 619 | // Exec executes the query on the entity. |
| 620 | func (nuo *NodeUpdateOne) Exec(ctx context.Context) error { |