MCPcopy Index your code
hub / github.com/ent/ent / SetIgnore

Method SetIgnore

dialect/sql/builder.go:416–418  ·  view source on GitHub ↗

SetIgnore sets the column to itself. For example, "id" = "users"."id".

(name string)

Source from the content-addressed store, hash-verified

414
415// SetIgnore sets the column to itself. For example, "id" = "users"."id".
416func (u *UpdateSet) SetIgnore(name string) *UpdateSet {
417 return u.Set(name, Expr(u.Table().C(name)))
418}
419
420// SetExcluded sets the column name to its EXCLUDED/VALUES value.
421// For example, "c" = "excluded"."c", or `c` = VALUES(`c`).

Callers 15

UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80

Calls 4

SetMethod · 0.95
TableMethod · 0.95
ExprFunction · 0.70
CMethod · 0.65

Tested by 1

TestInsert_OnConflictFunction · 0.64