MCPcopy
hub / github.com/pocketbase/pocketbase / PrepareValue

Method PrepareValue

core/field_bool.go:104–106  ·  view source on GitHub ↗

PrepareValue implements [Field.PrepareValue] interface method.

(record *Record, raw any)

Source from the content-addressed store, hash-verified

102
103// PrepareValue implements [Field.PrepareValue] interface method.
104func (f *BoolField) PrepareValue(record *Record, raw any) (any, error) {
105 return cast.ToBool(raw), nil
106}
107
108// ValidateValue implements [Field.ValidateValue] interface method.
109func (f *BoolField) ValidateValue(ctx context.Context, app App, record *Record) error {

Callers 1

Calls

no outgoing calls

Tested by 1