ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 761 | |
| 762 | // ExecX is like Exec, but panics if an error occurs. |
| 763 | func (tcb *TaskCreateBulk) ExecX(ctx context.Context) { |
| 764 | if err := tcb.Exec(ctx); err != nil { |
| 765 | panic(err) |
| 766 | } |
| 767 | } |
| 768 | |
| 769 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 770 | // of the `INSERT` statement. For example: |