Versions in this module Expand all Collapse all v1 v1.0.5 Jul 9, 2023 v1.0.4 Jul 9, 2023 Changes in this version + func Parser(options *Options) error + func ParserToString(options *Options) (string, error) + type FileInfo struct + DirName string + FilePath string + GenPath string + StructList []*StructInfo + type Options struct + InputFile string + MysqlDsn string + MysqlTable string + OutputDir string + Sql string + type ReadFromFile struct + func (r *ReadFromFile) GetStructList() ([]*StructInfo, error) + type ReadFromMySQL struct + func (r *ReadFromMySQL) GetStructList() ([]*StructInfo, error) + type ReadFromSQL struct + func (r *ReadFromSQL) GetStructList() ([]*StructInfo, error) + type Reader interface + GetStructList func() ([]*StructInfo, error) + func NewReader(options *Options) Reader + type ShowTable struct + CreateTable string + Table string + type StructInfo struct + Fields []StructInfoField + Name string + func ParseSql(sql string) ([]*StructInfo, error) + type StructInfoField struct + FieldComment string + FieldName string + FieldType string