SaveX calls Save and panics if Save returns an error.
(ctx context.Context)
| 250 | |
| 251 | // SaveX calls Save and panics if Save returns an error. |
| 252 | func (_c *MachineCreate) SaveX(ctx context.Context) *Machine { |
| 253 | v, err := _c.Save(ctx) |
| 254 | if err != nil { |
| 255 | panic(err) |
| 256 | } |
| 257 | return v |
| 258 | } |
| 259 | |
| 260 | // Exec executes the query. |
| 261 | func (_c *MachineCreate) Exec(ctx context.Context) error { |