MCPcopy
hub / github.com/pocketbase/pocketbase / Load

Method Load

core/record_model.go:941–945  ·  view source on GitHub ↗

Load bulk loads the provided data into the current Record model.

(data map[string]any)

Source from the content-addressed store, hash-verified

939
940// Load bulk loads the provided data into the current Record model.
941func (m *Record) Load(data map[string]any) {
942 for k, v := range data {
943 m.Set(k, v)
944 }
945}
946
947// GetBool returns the data value for "key" as a bool.
948func (m *Record) GetBool(key string) bool {

Callers 8

TestRecordLoadFunction · 0.95
TestRecordDBExportFunction · 0.95
UnmarshalJSONMethod · 0.95
TestRecordOriginalFunction · 0.45
BindCoreFunction · 0.45

Calls 1

SetMethod · 0.95

Tested by 6

TestRecordLoadFunction · 0.76
TestRecordDBExportFunction · 0.76
TestRecordOriginalFunction · 0.36