MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / Value

Method Value

tools/types/json_raw.go:47–53  ·  view source on GitHub ↗

Value implements the [driver.Valuer] interface.

()

Source from the content-addressed store, hash-verified

45
46// Value implements the [driver.Valuer] interface.
47func (j JSONRaw) Value() (driver.Value, error) {
48 if len(j) == 0 {
49 return nil, nil
50 }
51
52 return j.String(), nil
53}
54
55// Scan implements [sql.Scanner] interface to scan the provided value
56// into the current JSONRaw instance.

Callers 5

TestJSONArrayValueFunction · 0.45
TestJSONMapValueFunction · 0.45
TestJSONRawValueFunction · 0.45
TestDateTimeValueFunction · 0.45

Calls 1

StringMethod · 0.95

Tested by 5

TestJSONArrayValueFunction · 0.36
TestJSONMapValueFunction · 0.36
TestJSONRawValueFunction · 0.36
TestDateTimeValueFunction · 0.36