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

Method Set

dialect/sql/scan.go:379–387  ·  view source on GitHub ↗

Set sets the value of the given column.

(name string, v any)

Source from the content-addressed store, hash-verified

377
378// Set sets the value of the given column.
379func (s *SelectValues) Set(name string, v any) {
380 if *s == nil {
381 *s = make(SelectValues)
382 }
383 if pv, ok := v.(*any); ok && pv != nil {
384 v = *pv
385 }
386 (*s)[name] = v
387}
388
389// Get returns the value of the given column.
390func (s SelectValues) Get(name string) (any, error) {

Callers 15

ScanSliceFunction · 0.45
scanStructFunction · 0.45
scanPtrFunction · 0.45
TestBuilderFunction · 0.45
TestInsert_OnConflictFunction · 0.45
setCaseFunction · 0.45
TestWriteDriverFunction · 0.45
TestUpdateNodeFunction · 0.45
TestUpdateNodesFunction · 0.45

Calls

no outgoing calls

Tested by 8

TestBuilderFunction · 0.36
TestInsert_OnConflictFunction · 0.36
TestWriteDriverFunction · 0.36
TestUpdateNodeFunction · 0.36
TestUpdateNodesFunction · 0.36