Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamingStrategies ¶
func GetNamingStrategies() map[ColumnNamePattern]Naming
Types ¶
type ColumnNamePattern ¶
type ColumnNamePattern string
nolint:no-doc 自定义枚举类型,表示使用何种字段验证方式来验证,由于不同的DB的列名规则是不同的,因此通常建议是取各种DB的交集
const ( Lowercase30 ColumnNamePattern = "s30" Uppercase30 ColumnNamePattern = "S30" Lowercase63 ColumnNamePattern = "s63" Uppercase63 ColumnNamePattern = "S63" DefaultPattern ColumnNamePattern = Lowercase63 )
Click to show internal directories.
Click to hide internal directories.