Documentation ¶
Index ¶
Constants ¶
View Source
const ( FexORMTagName = "fexorm" FexORMColumnNameTag = "COLUMN" )
Variables ¶
This section is empty.
Functions ¶
func ParseTagSetting ¶
Types ¶
type NamedTable ¶
type NamedTable interface {
TableName() string
}
type Schema ¶
type Schema struct { Model interface{} Name string // 结构体名称 FieldNames []string // 结构体字段名 Fields []*Field Table string // 数据库表名,取自 TableName() 方法,兜底结构体名 DBFieldNames []string // 数据库字段名,取自 COLUMN 标签,兜底字段名 // contains filtered or unexported fields }
Schema 利用反射完成 结构体和数据库表结构的映射
func (*Schema) GetFieldByName ¶
func (*Schema) RecordValues ¶
func (schema *Schema) RecordValues(dest interface{}) []interface{}
Click to show internal directories.
Click to hide internal directories.