Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { Name string `gorm:"primary_key;type:varchar(100);"` Type string `gorm:"column:type;"` Rank int `gorm:"column:rank;"` }
Example is a gorm model define 3 fields(name, type, rank)
func (*Example) Columns ¶
func (*Example) Columns() *ExampleColumns
type ExampleColumns ¶
type ExampleColumns struct { // The column names and types of the model's columns // 模型各列的列名和类型 Name gormcnm.ColumnName[string] Type gormcnm.ColumnName[string] Rank gormcnm.ColumnName[int] }
Click to show internal directories.
Click to hide internal directories.