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

Method OnConflictColumns

ent/node_create.go:378–383  ·  view source on GitHub ↗

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using: client.Node.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)

(columns ...string)

Source from the content-addressed store, hash-verified

376// OnConflict(sql.ConflictColumns(columns...)).
377// Exec(ctx)
378func (nc *NodeCreate) OnConflictColumns(columns ...string) *NodeUpsertOne {
379 nc.conflict = append(nc.conflict, sql.ConflictColumns(columns...))
380 return &NodeUpsertOne{
381 create: nc,
382 }
383}
384
385type (
386 // NodeUpsertOne is the builder for "upsert"-ing

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected