ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 1171 | |
| 1172 | // ExecX is like Exec, but panics if an error occurs. |
| 1173 | func (_c *MachineCreateBulk) ExecX(ctx context.Context) { |
| 1174 | if err := _c.Exec(ctx); err != nil { |
| 1175 | panic(err) |
| 1176 | } |
| 1177 | } |
| 1178 | |
| 1179 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 1180 | // of the `INSERT` statement. For example: |