SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 103 | |
| 104 | // SaveX is like Save, but panics if an error occurs. |
| 105 | func (su *SettingUpdate) SaveX(ctx context.Context) int { |
| 106 | affected, err := su.Save(ctx) |
| 107 | if err != nil { |
| 108 | panic(err) |
| 109 | } |
| 110 | return affected |
| 111 | } |
| 112 | |
| 113 | // Exec executes the query. |
| 114 | func (su *SettingUpdate) Exec(ctx context.Context) error { |