SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 243 | |
| 244 | // SaveX is like Save, but panics if an error occurs. |
| 245 | func (su *ShareUpdate) SaveX(ctx context.Context) int { |
| 246 | affected, err := su.Save(ctx) |
| 247 | if err != nil { |
| 248 | panic(err) |
| 249 | } |
| 250 | return affected |
| 251 | } |
| 252 | |
| 253 | // Exec executes the query. |
| 254 | func (su *ShareUpdate) Exec(ctx context.Context) error { |