MCPcopy
hub / github.com/pocketbase/pocketbase / FindCachedCollectionReferences

Method FindCachedCollectionReferences

core/app.go:452–452  ·  view source on GitHub ↗

FindCachedCollectionReferences is similar to [App.FindCollectionReferences] but retrieves the Collection from the app cache instead of making a db call. NB! This method is suitable for read-only Collection operations. If you plan making changes to the returned Collection model, use [App.FindCollec

(collection *Collection, excludeIds ...string)

Source from the content-addressed store, hash-verified

450 // - The cache is automatically updated on collections db change (create/update/delete).
451 // To manually reload the cache you can call [App.ReloadCachedCollections].
452 FindCachedCollectionReferences(collection *Collection, excludeIds ...string) (map[*Collection][]Field, error)
453
454 // IsCollectionNameUnique checks that there is no existing collection
455 // with the provided name (case insensitive!).

Callers 2

onRecordDeleteExecuteFunction · 0.65

Calls

no outgoing calls

Tested by 1