ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 893 | |
| 894 | // ExecX is like Exec, but panics if an error occurs. |
| 895 | func (scb *ShareCreateBulk) ExecX(ctx context.Context) { |
| 896 | if err := scb.Exec(ctx); err != nil { |
| 897 | panic(err) |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 902 | // of the `INSERT` statement. For example: |