ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 118 | |
| 119 | // ExecX is like Exec, but panics if an error occurs. |
| 120 | func (su *SettingUpdate) ExecX(ctx context.Context) { |
| 121 | if err := su.Exec(ctx); err != nil { |
| 122 | panic(err) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | // defaults sets the default values of the builder before save. |
| 127 | func (su *SettingUpdate) defaults() error { |