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

Method PostScan

core/collection_model.go:496–502  ·  view source on GitHub ↗

PostScan implements the [dbx.PostScanner] interface to auto unmarshal the raw serialized options into the concrete type specific fields.

()

Source from the content-addressed store, hash-verified

494// PostScan implements the [dbx.PostScanner] interface to auto unmarshal
495// the raw serialized options into the concrete type specific fields.
496func (m *Collection) PostScan() error {
497 if err := m.BaseModel.PostScan(); err != nil {
498 return err
499 }
500
501 return m.unmarshalRawOptions()
502}
503
504func (m *Collection) unmarshalRawOptions() error {
505 raw, err := m.RawOptions.MarshalJSON()

Callers 1

TestCollectionPostScanFunction · 0.95

Calls 1

unmarshalRawOptionsMethod · 0.95

Tested by 1

TestCollectionPostScanFunction · 0.76