SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 278 | |
| 279 | // SaveX calls Save and panics if Save returns an error. |
| 280 | func (spc *StoragePolicyCreate) SaveX(ctx context.Context) *StoragePolicy { |
| 281 | v, err := spc.Save(ctx) |
| 282 | if err != nil { |
| 283 | panic(err) |
| 284 | } |
| 285 | return v |
| 286 | } |
| 287 | |
| 288 | // Exec executes the query. |
| 289 | func (spc *StoragePolicyCreate) Exec(ctx context.Context) error { |