MCPcopy
hub / github.com/pocketbase/pocketbase / OnModelUpdateExecute

Method OnModelUpdateExecute

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

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

(tags ...string)

Source from the content-addressed store, hash-verified

874 // then all event handlers registered via the created hook will be
875 // triggered and called only if their event data origin matches the tags.
876 OnModelUpdateExecute(tags ...string) *hook.TaggedHook[*ModelEvent]
877
878 // OnModelAfterUpdateSuccess is triggered after each successful
879 // Model DB update persistence.

Callers 4

updateMethod · 0.65
TestRecordModelEventSyncFunction · 0.65
NewTestAppWithConfigFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestRecordModelEventSyncFunction · 0.52