ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 647 | |
| 648 | // ExecX is like Exec, but panics if an error occurs. |
| 649 | func (mcb *MetadataCreateBulk) ExecX(ctx context.Context) { |
| 650 | if err := mcb.Exec(ctx); err != nil { |
| 651 | panic(err) |
| 652 | } |
| 653 | } |
| 654 | |
| 655 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 656 | // of the `INSERT` statement. For example: |