SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 314 | |
| 315 | // SaveX calls Save and panics if Save returns an error. |
| 316 | func (uc *UserCreate) SaveX(ctx context.Context) *User { |
| 317 | v, err := uc.Save(ctx) |
| 318 | if err != nil { |
| 319 | panic(err) |
| 320 | } |
| 321 | return v |
| 322 | } |
| 323 | |
| 324 | // Exec executes the query. |
| 325 | func (uc *UserCreate) Exec(ctx context.Context) error { |