OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example: client.Setting.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override
(opts ...sql.ConflictOption)
| 574 | // }). |
| 575 | // Exec(ctx) |
| 576 | func (scb *SettingCreateBulk) OnConflict(opts ...sql.ConflictOption) *SettingUpsertBulk { |
| 577 | scb.conflict = opts |
| 578 | return &SettingUpsertBulk{ |
| 579 | create: scb, |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | // OnConflictColumns calls `OnConflict` and configures the columns |
| 584 | // as conflict target. Using this option is equivalent to using: |
nothing calls this directly
no outgoing calls
no test coverage detected