ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 650 | |
| 651 | // ExecX is like Exec, but panics if an error occurs. |
| 652 | func (suo *ShareUpdateOne) ExecX(ctx context.Context) { |
| 653 | if err := suo.Exec(ctx); err != nil { |
| 654 | panic(err) |
| 655 | } |
| 656 | } |
| 657 | |
| 658 | // defaults sets the default values of the builder before save. |
| 659 | func (suo *ShareUpdateOne) defaults() error { |