MCPcopy
hub / github.com/pocketbase/pocketbase / setValue

Method setValue

core/field_select.go:245–247  ·  view source on GitHub ↗
(record *Record, raw any)

Source from the content-addressed store, hash-verified

243}
244
245func (f *SelectField) setValue(record *Record, raw any) {
246 record.SetRaw(f.Name, f.normalizeValue(raw))
247}
248
249func (f *SelectField) appendValue(record *Record, modifierValue any) {
250 val := record.GetRaw(f.Name)

Callers 3

appendValueMethod · 0.95
prependValueMethod · 0.95
subtractValueMethod · 0.95

Calls 2

normalizeValueMethod · 0.95
SetRawMethod · 0.80

Tested by

no test coverage detected