SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 194 | |
| 195 | // SaveX is like Save, but panics if an error occurs. |
| 196 | func (_u *GroupUpdate) SaveX(ctx context.Context) int { |
| 197 | affected, err := _u.Save(ctx) |
| 198 | if err != nil { |
| 199 | panic(err) |
| 200 | } |
| 201 | return affected |
| 202 | } |
| 203 | |
| 204 | // Exec executes the query. |
| 205 | func (_u *GroupUpdate) Exec(ctx context.Context) error { |