SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 39 | |
| 40 | // SaveX is like Save, but panics if an error occurs. |
| 41 | func (_u *LockUpdate) SaveX(ctx context.Context) int { |
| 42 | affected, err := _u.Save(ctx) |
| 43 | if err != nil { |
| 44 | panic(err) |
| 45 | } |
| 46 | return affected |
| 47 | } |
| 48 | |
| 49 | // Exec executes the query. |
| 50 | func (_u *LockUpdate) Exec(ctx context.Context) error { |