ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 553 | |
| 554 | // ExecX is like Exec, but panics if an error occurs. |
| 555 | func (scb *SettingCreateBulk) ExecX(ctx context.Context) { |
| 556 | if err := scb.Exec(ctx); err != nil { |
| 557 | panic(err) |
| 558 | } |
| 559 | } |
| 560 | |
| 561 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 562 | // of the `INSERT` statement. For example: |