MCPcopy
hub / github.com/pocketbase/pocketbase / initDefaultId

Method initDefaultId

core/collection_model.go:752–757  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

750}
751
752func (c *Collection) initDefaultId() {
753 if c.Id == "" {
754 c.Id = c.idChecksum()
755 c.autogeneratedId = c.Id
756 }
757}
758
759func (c *Collection) updateGeneratedIdIfExists(app App) {
760 if !c.IsNew() ||

Callers 4

NewBaseCollectionFunction · 0.95
NewViewCollectionFunction · 0.95
NewAuthCollectionFunction · 0.95
onCollectionSaveFunction · 0.80

Calls 1

idChecksumMethod · 0.95

Tested by

no test coverage detected