MCPcopy
hub / github.com/pocketbase/pocketbase / FieldNames

Method FieldNames

core/fields_list.go:41–49  ·  view source on GitHub ↗

FieldNames returns a slice with the name of all list fields.

()

Source from the content-addressed store, hash-verified

39
40// FieldNames returns a slice with the name of all list fields.
41func (l FieldsList) FieldNames() []string {
42 result := make([]string, len(l))
43
44 for i, field := range l {
45 result[i] = field.GetName()
46 }
47
48 return result
49}
50
51// AsMap returns a map with all registered list field.
52// The returned map is indexed with each field name.

Callers 13

TestFieldsListFieldNamesFunction · 0.95
TestFieldsListAddAtFunction · 0.95
TestRecordOriginalFunction · 0.80
TestRecordFreshFunction · 0.80
TestRecordCloneFunction · 0.80
NewRecordFieldResolverFunction · 0.80
onRecordSaveExecuteFunction · 0.80
recordAuthResponseFunction · 0.80
autoResolveRecordsFlagsFunction · 0.80
realtimeBroadcastRecordFunction · 0.80

Calls 1

GetNameMethod · 0.65

Tested by 7

TestFieldsListFieldNamesFunction · 0.76
TestFieldsListAddAtFunction · 0.76
TestRecordOriginalFunction · 0.64
TestRecordFreshFunction · 0.64
TestRecordCloneFunction · 0.64