SaveX is like Save, but panics if an error occurs.
(ctx context.Context)
| 1156 | |
| 1157 | // SaveX is like Save, but panics if an error occurs. |
| 1158 | func (_c *MachineCreateBulk) SaveX(ctx context.Context) []*Machine { |
| 1159 | v, err := _c.Save(ctx) |
| 1160 | if err != nil { |
| 1161 | panic(err) |
| 1162 | } |
| 1163 | return v |
| 1164 | } |
| 1165 | |
| 1166 | // Exec executes the query. |
| 1167 | func (_c *MachineCreateBulk) Exec(ctx context.Context) error { |