Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticData ¶
type StaticData struct {
Package string
Tables []*Table
Enums []*static_data.Enum
// contains filtered or unexported fields
}
func New ¶
func New(pkg string) *StaticData
func (*StaticData) CollectExtend ¶
func (s *StaticData) CollectExtend(filePath string, extendBeginRegex *regexp.Regexp) (err error)
func (StaticData) GetExtendContent ¶
func (s StaticData) GetExtendContent(name string) (content string)
type Table ¶
type Table struct {
Package string
JsonFileName string `json:"-"`
RawName string `json:"Name"`
Name string `json:"-"`
Fields []*Field
UniqueIndexes []*Field `json:",omitempty"` // 唯一索引
NormalIndexes []*Field `json:",omitempty"` // 普通索引
Attributes []*Field `json:",omitempty"`
Enums []*static_data.Enum
Comment string
// contains filtered or unexported fields
}
func ReadJsonFile ¶
func (*Table) CollectExtend ¶
func (Table) GetExtendContent ¶
Click to show internal directories.
Click to hide internal directories.