ExecX is like Exec, but panics if an error occurs.
(ctx context.Context)
| 888 | |
| 889 | // ExecX is like Exec, but panics if an error occurs. |
| 890 | func (ncb *NodeCreateBulk) ExecX(ctx context.Context) { |
| 891 | if err := ncb.Exec(ctx); err != nil { |
| 892 | panic(err) |
| 893 | } |
| 894 | } |
| 895 | |
| 896 | // OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause |
| 897 | // of the `INSERT` statement. For example: |