OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using: client.Setting.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
(columns ...string)
| 236 | // OnConflict(sql.ConflictColumns(columns...)). |
| 237 | // Exec(ctx) |
| 238 | func (sc *SettingCreate) OnConflictColumns(columns ...string) *SettingUpsertOne { |
| 239 | sc.conflict = append(sc.conflict, sql.ConflictColumns(columns...)) |
| 240 | return &SettingUpsertOne{ |
| 241 | create: sc, |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | type ( |
| 246 | // SettingUpsertOne is the builder for "upsert"-ing |
nothing calls this directly
no outgoing calls
no test coverage detected