Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelToSnake ¶
CamelToSnake converts CamelCase to snake_case.
func FieldColumnName ¶
func FieldColumnName(f reflect.StructField) string
FieldColumnName returns the column name for a struct field by checking db, neat, gorm, json tags (in that order of priority), then falling back to snake_case of the field name.
The json tag is the lowest-priority source and is parsed per the encoding/json convention: `json:"name,omitempty"` uses the part before the comma; `json:"-"` is treated as "no column name" (skip).
This is the single source of truth for struct→column name resolution, shared by the query builder and the array source helper.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.