MCPcopy
hub / github.com/ent/ent / Set

Method Set

dialect/sql/builder.go:398–401  ·  view source on GitHub ↗

Set sets a column to a given value.

(column string, v any)

Source from the content-addressed store, hash-verified

396
397// Set sets a column to a given value.
398func (u *UpdateSet) Set(column string, v any) *UpdateSet {
399 u.UpdateBuilder.Set(column, v)
400 return u
401}
402
403// Add adds a numeric value to the given column.
404func (u *UpdateSet) Add(column string, v any) *UpdateSet {

Callers 2

SetIgnoreMethod · 0.95
SetExcludedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected