SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 453 | |
| 454 | // SaveX is like Save, but panics if an error occurs. |
| 455 | func (tuo *TaskUpdateOne) SaveX(ctx context.Context) *Task { |
| 456 | node, err := tuo.Save(ctx) |
| 457 | if err != nil { |
| 458 | panic(err) |
| 459 | } |
| 460 | return node |
| 461 | } |
| 462 | |
| 463 | // Exec executes the query on the entity. |
| 464 | func (tuo *TaskUpdateOne) Exec(ctx context.Context) error { |