SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 635 | |
| 636 | // SaveX is like Save, but panics if an error occurs. |
| 637 | func (suo *ShareUpdateOne) SaveX(ctx context.Context) *Share { |
| 638 | node, err := suo.Save(ctx) |
| 639 | if err != nil { |
| 640 | panic(err) |
| 641 | } |
| 642 | return node |
| 643 | } |
| 644 | |
| 645 | // Exec executes the query on the entity. |
| 646 | func (suo *ShareUpdateOne) Exec(ctx context.Context) error { |