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

Method Add

dialect/sql/builder.go:404–407  ·  view source on GitHub ↗

Add adds a numeric value to the given column.

(column string, v any)

Source from the content-addressed store, hash-verified

402
403// Add adds a numeric value to the given column.
404func (u *UpdateSet) Add(column string, v any) *UpdateSet {
405 u.UpdateBuilder.Add(column, v)
406 return u
407}
408
409// SetNull sets a column as null value.
410func (u *UpdateSet) SetNull(column string) *UpdateSet {

Callers 4

TestBuilderFunction · 0.45
TestInsert_OnConflictFunction · 0.45
TestAtlas_ParallelCreateFunction · 0.45
setTableColumnsMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestBuilderFunction · 0.36
TestInsert_OnConflictFunction · 0.36
TestAtlas_ParallelCreateFunction · 0.36