MCPcopy
hub / github.com/pocketbase/pocketbase / DBExporter

Interface DBExporter

core/db.go:34–37  ·  view source on GitHub ↗

DBExporter defines an interface for custom DB data export. Usually used as part of [App.Save].

Source from the content-addressed store, hash-verified

32// DBExporter defines an interface for custom DB data export.
33// Usually used as part of [App.Save].
34type DBExporter interface {
35 // DBExport returns a key-value map with the data to be used when saving the struct in the database.
36 DBExport(app App) (map[string]any, error)
37}
38
39// PreValidator defines an optional model interface for registering a
40// function that will run BEFORE firing the validation hooks (see [App.ValidateWithContext]).

Callers 5

createMethod · 0.65
updateMethod · 0.65
recordCreateFunction · 0.65
initFunction · 0.65

Implementers 1

Recordcore/record_model.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…