Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryStructMeta ¶
type QueryStructMeta struct {
Generated bool // whether to generate db model
FileName string // generated file name
S string // the first letter(lower case)of simple Name (receiver)
QueryStructName string // internal query struct name
ModelStructName string // origin/model struct name
TableName string // table name in db server
StructInfo parser.Param
Fields []*model.Field
Source model.SourceCode
ImportPkgPaths []string
// contains filtered or unexported fields
}
QueryStructMeta struct info in generated code
func ConvertStructs ¶
func ConvertStructs(structs ...interface{}) (metas []*QueryStructMeta, err error)
ConvertStructs convert to base structures
Click to show internal directories.
Click to hide internal directories.