ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 285 | |
| 286 | // ExecX is like Exec, but panics if an error occurs. |
| 287 | func (suo *SettingUpdateOne) ExecX(ctx context.Context) { |
| 288 | if err := suo.Exec(ctx); err != nil { |
| 289 | panic(err) |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | // defaults sets the default values of the builder before save. |
| 294 | func (suo *SettingUpdateOne) defaults() error { |