OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using: client.Task.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
(columns ...string)
| 350 | // OnConflict(sql.ConflictColumns(columns...)). |
| 351 | // Exec(ctx) |
| 352 | func (tc *TaskCreate) OnConflictColumns(columns ...string) *TaskUpsertOne { |
| 353 | tc.conflict = append(tc.conflict, sql.ConflictColumns(columns...)) |
| 354 | return &TaskUpsertOne{ |
| 355 | create: tc, |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | type ( |
| 360 | // TaskUpsertOne is the builder for "upsert"-ing |
nothing calls this directly
no outgoing calls
no test coverage detected