MCPcopy
hub / github.com/pocketbase/pocketbase / Collection

Method Collection

core/record_model.go:567–569  ·  view source on GitHub ↗

Collection returns the Collection model associated with the current Record model. NB! The returned collection is only for read purposes and it shouldn't be modified because it could have unintended side-effects on other Record models from the same collection.

()

Source from the content-addressed store, hash-verified

565// NB! The returned collection is only for read purposes and it shouldn't be modified
566// because it could have unintended side-effects on other Record models from the same collection.
567func (m *Record) Collection() *Collection {
568 return m.collection
569}
570
571// TableName returns the table name associated with the current Record model.
572func (m *Record) TableName() string {

Callers 15

newAuthTokenMethod · 0.95
NewVerificationTokenMethod · 0.95
NewPasswordResetTokenMethod · 0.95
NewEmailChangeTokenMethod · 0.95
NewFileTokenMethod · 0.95
TestRecordCollectionFunction · 0.95
TestRecordSaveFunction · 0.95
CustomDataMethod · 0.95
SetIfFieldExistsMethod · 0.95
GetMethod · 0.95
FindFileFieldByFileMethod · 0.95

Calls

no outgoing calls

Tested by 15

TestRecordCollectionFunction · 0.76
TestRecordSaveFunction · 0.76
TestNewExternalAuthFunction · 0.64
TestFindAllOTPsByRecordFunction · 0.64
TestFileFieldFindGetterFunction · 0.64
TestNewMFAFunction · 0.64
TestMFAPreValidateFunction · 0.64
TestMFAValidateHookFunction · 0.64