Documentation ¶
Index ¶
- Variables
- func InjectMigrateMeta(s *MigrateMeta)
- func LoadMigrateMeta() baseiface.ISingleton
- type MigrateMeta
- func (self *MigrateMeta) AddField(field string, fieldType string, fieldTag string)
- func (self *MigrateMeta) Col2ColType(colType string, colName string) (reflect.Type, bool)
- func (self *MigrateMeta) CreateStruMeta() reflect.Value
- func (self *MigrateMeta) CreateStruMetaRecord() any
- func (self *MigrateMeta) Decode()
- func (self *MigrateMeta) Encode()
- func (self *MigrateMeta) FromStru(stru schema.Tabler)
- func (self *MigrateMeta) FromStruFilter(stru schema.Tabler, filterFields string)
- func (self *MigrateMeta) Str2Garray(fields string) *garray.Array
Constants ¶
This section is empty.
Variables ¶
View Source
var ColTypNil = reflect.TypeOf(basedto.IchubResult{})
Functions ¶
func InjectMigrateMeta ¶
func InjectMigrateMeta(s *MigrateMeta)
func LoadMigrateMeta ¶
func LoadMigrateMeta() baseiface.ISingleton
Types ¶
type MigrateMeta ¶
type MigrateMeta struct { basedto.BaseEntity FieldTypes map[string]string FieldTags map[string]string // contains filtered or unexported fields }
func NewMigrateMeta ¶
func NewMigrateMeta() *MigrateMeta
func (*MigrateMeta) AddField ¶
func (self *MigrateMeta) AddField(field string, fieldType string, fieldTag string)
func (*MigrateMeta) Col2ColType ¶
func (*MigrateMeta) CreateStruMeta ¶
func (self *MigrateMeta) CreateStruMeta() reflect.Value
func (*MigrateMeta) CreateStruMetaRecord ¶
func (self *MigrateMeta) CreateStruMetaRecord() any
func (*MigrateMeta) Decode ¶
func (self *MigrateMeta) Decode()
func (*MigrateMeta) Encode ¶
func (self *MigrateMeta) Encode()
func (*MigrateMeta) FromStru ¶
func (self *MigrateMeta) FromStru(stru schema.Tabler)
func (*MigrateMeta) FromStruFilter ¶
func (self *MigrateMeta) FromStruFilter(stru schema.Tabler, filterFields string)
fields f1,f2
func (*MigrateMeta) Str2Garray ¶
func (self *MigrateMeta) Str2Garray(fields string) *garray.Array
Click to show internal directories.
Click to hide internal directories.