MCPcopy
hub / github.com/pocketbase/pocketbase / GetString

Method GetString

core/record_model.go:953–955  ·  view source on GitHub ↗

GetString returns the data value for "key" as a string.

(key string)

Source from the content-addressed store, hash-verified

951
952// GetString returns the data value for "key" as a string.
953func (m *Record) GetString(key string) string {
954 return cast.ToString(m.Get(key))
955}
956
957// GetInt returns the data value for "key" as an int.
958func (m *Record) GetInt(key string) int {

Callers 15

TestRecordGetStringFunction · 0.95
EmailMethod · 0.95
TokenKeyMethod · 0.95
TestTextFieldFindSetterFunction · 0.95
UnmarshalJSONFieldMethod · 0.95
resolveEmailTemplateFunction · 0.80
TestSendRecordAuthAlertFunction · 0.80

Calls 1

GetMethod · 0.95

Tested by 15

TestRecordGetStringFunction · 0.76
TestTextFieldFindSetterFunction · 0.76
TestSendRecordAuthAlertFunction · 0.64
TestSendRecordOTPFunction · 0.64