ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 265 | |
| 266 | // ExecX is like Exec, but panics if an error occurs. |
| 267 | func (_c *MachineCreate) ExecX(ctx context.Context) { |
| 268 | if err := _c.Exec(ctx); err != nil { |
| 269 | panic(err) |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | // defaults sets the default values of the builder before save. |
| 274 | func (_c *MachineCreate) defaults() { |