Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check checks whether any of the given field names are not among a list of editable fields
func DBColumnsFrom ¶
func DBColumnsFrom(obj interface{}) (columns []string)
DBColumnsFrom returns a slice of data field names declared via `db` tag NOTE: will only include fields with explicit `db` tag
func ListEditable ¶
func ListEditable(obj interface{}) []string
ListEditable returns a list of editable fields for a given object
func ProcureDBChangesFromChangelog ¶
func ProcureDBChangesFromChangelog(obj interface{}, changelog diff.Changelog) (changes map[string]interface{}, err error)
ProcureDBChangesFromChangelog produces a map of changes based on a given object and a changelog NOTE: this function does not check whether any of the changed fields are protected NOTE: returned keys are the data column names mapped with `db` TODO: move to data package
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.