MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / OnConflictColumns

Method OnConflictColumns

ent/setting_create.go:238–243  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

236// OnConflict(sql.ConflictColumns(columns...)).
237// Exec(ctx)
238func (sc *SettingCreate) OnConflictColumns(columns ...string) *SettingUpsertOne {
239 sc.conflict = append(sc.conflict, sql.ConflictColumns(columns...))
240 return &SettingUpsertOne{
241 create: sc,
242 }
243}
244
245type (
246 // SettingUpsertOne is the builder for "upsert"-ing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected