MCPcopy
hub / github.com/pocketbase/pocketbase / IsView

Method IsView

core/collection_model.go:485–487  ·  view source on GitHub ↗

IsView checks if the current collection has "view" type.

()

Source from the content-addressed store, hash-verified

483
484// IsView checks if the current collection has "view" type.
485func (m *Collection) IsView() bool {
486 return m.Type == CollectionTypeView
487}
488
489// IntegrityChecks toggles the current collection integrity checks (ex. checking references on delete).
490func (m *Collection) IntegrityChecks(enable bool) {

Callers 15

TestCollectionIsViewFunction · 0.95
SyncRecordTableSchemaMethod · 0.80
dropCollectionIndexesFunction · 0.80
createCollectionIndexesFunction · 0.80
ImportCollectionsMethod · 0.80
registerRecordHooksMethod · 0.80
cascadeRecordDeleteFunction · 0.80
TruncateCollectionMethod · 0.80
saveViewCollectionFunction · 0.80
onCollectionSaveExecuteFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCollectionIsViewFunction · 0.76