MCPcopy
hub / github.com/ent/ent / SetNull

Method SetNull

dialect/sql/builder.go:410–413  ·  view source on GitHub ↗

SetNull sets a column as null value.

(column string)

Source from the content-addressed store, hash-verified

408
409// SetNull sets a column as null value.
410func (u *UpdateSet) SetNull(column string) *UpdateSet {
411 u.UpdateBuilder.SetNull(column)
412 return u
413}
414
415// SetIgnore sets the column to itself. For example, "id" = "users"."id".
416func (u *UpdateSet) SetIgnore(name string) *UpdateSet {

Callers 15

ClearSetIDMethod · 0.45
ClearUserMethod · 0.45
ClearGroupMethod · 0.45
ClearOpMethod · 0.45
ClearFieldIDMethod · 0.45
ClearCreateTimeMethod · 0.45
ClearTextMethod · 0.45
ClearValueMethod · 0.45
ClearUpdatedAtMethod · 0.45
ClearOptionalIntMethod · 0.45
ClearOptionalInt8Method · 0.45
ClearOptionalInt16Method · 0.45

Calls

no outgoing calls

Tested by 3

TestBuilderFunction · 0.36
TestInsert_OnConflictFunction · 0.36
TestEscapePatternsFunction · 0.36