DBExporter defines an interface for custom DB data export. Usually used as part of [App.Save].
| 32 | // DBExporter defines an interface for custom DB data export. |
| 33 | // Usually used as part of [App.Save]. |
| 34 | type 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]). |
no outgoing calls
no test coverage detected
searching dependent graphs…