ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 1213 | |
| 1214 | // ExecX is like Exec, but panics if an error occurs. |
| 1215 | func (ucb *UserCreateBulk) ExecX(ctx context.Context) { |
| 1216 | if err := ucb.Exec(ctx); err != nil { |
| 1217 | panic(err) |
| 1218 | } |
| 1219 | } |
| 1220 | |
| 1221 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 1222 | // of the `INSERT` statement. For example: |