MCPcopy
hub / github.com/pocketbase/pocketbase / OnModelCreateExecute

Method OnModelCreateExecute

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

OnModelCreateExecute is triggered after successful Model validation and right before the model INSERT DB statement execution. Usually it is triggered as part of the App.Save() in the following firing order: OnModelCreate { -> OnModelValidate (skipped with App.SaveNoValidate()) -> OnModelCreateExecu

(tags ...string)

Source from the content-addressed store, hash-verified

794 // then all event handlers registered via the created hook will be
795 // triggered and called only if their event data origin matches the tags.
796 OnModelCreateExecute(tags ...string) *hook.TaggedHook[*ModelEvent]
797
798 // OnModelAfterCreateSuccess is triggered after each successful
799 // Model DB create persistence.

Callers 4

createMethod · 0.65
TestRecordModelEventSyncFunction · 0.65
NewTestAppWithConfigFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestRecordModelEventSyncFunction · 0.52