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

Method Ignore

ent/node_create.go:572–575  ·  view source on GitHub ↗

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using: client.Node.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)

()

Source from the content-addressed store, hash-verified

570// OnConflict(sql.ResolveWithIgnore()).
571// Exec(ctx)
572func (u *NodeUpsertOne) Ignore() *NodeUpsertOne {
573 u.create.conflict = append(u.create.conflict, sql.ResolveWithIgnore())
574 return u
575}
576
577// DoNothing configures the conflict_action to `DO NOTHING`.
578// Supported only by SQLite and PostgreSQL.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected