MCPcopy
hub / github.com/pocketbase/pocketbase / Validate

Method Validate

core/db.go:234–236  ·  view source on GitHub ↗

Validate triggers the OnModelValidate hook for the specified model.

(model Model)

Source from the content-addressed store, hash-verified

232
233// Validate triggers the OnModelValidate hook for the specified model.
234func (app *BaseApp) Validate(model Model) error {
235 return app.ValidateWithContext(context.Background(), model)
236}
237
238// ValidateWithContext is the same as Validate but allows specifying the ModelEvent context.
239func (app *BaseApp) ValidateWithContext(ctx context.Context, model Model) error {

Callers

nothing calls this directly

Calls 1

ValidateWithContextMethod · 0.95

Tested by

no test coverage detected