MCPcopy
hub / github.com/pocketbase/pocketbase / ReloadCachedCollections

Method ReloadCachedCollections

core/collection_query.go:50–59  ·  view source on GitHub ↗

ReloadCachedCollections fetches all collections and caches them into the app store.

()

Source from the content-addressed store, hash-verified

48
49// ReloadCachedCollections fetches all collections and caches them into the app store.
50func (app *BaseApp) ReloadCachedCollections() error {
51 collections, err := app.FindAllCollections()
52 if err != nil {
53 return err
54 }
55
56 app.Store().Set(StoreKeyCachedCollections, collections)
57
58 return nil
59}
60
61// FindCollectionByNameOrId finds a single collection by its name (case insensitive) or id.
62func (app *BaseApp) FindCollectionByNameOrId(nameOrId string) (*Collection, error) {

Callers 1

BootstrapMethod · 0.95

Calls 3

FindAllCollectionsMethod · 0.95
StoreMethod · 0.95
SetMethod · 0.65

Tested by

no test coverage detected