{"modulePath":"github.com/melonwool/go-zero","version":"v1.1.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package parser\n\n## Types\n\n```go\ntype Field struct {\n\tName            stringx.String\n\tDataBaseType    string\n\tDataType        string\n\tComment         string\n\tSeqInIndex      int\n\tOrdinalPosition int\n}\n```\nField describes a table field\n\n```go\ntype KeyType int\n```\nKeyType types alias of int\n\n```go\ntype Primary struct {\n\tField\n\tAutoIncrement bool\n}\n```\nPrimary describes a primary key\n\n```go\ntype Table struct {\n\tName        stringx.String\n\tPrimaryKey  Primary\n\tUniqueIndex map[string][]*Field\n\tNormalIndex map[string][]*Field\n\tFields      []*Field\n}\n```\nTable describes a mysql table\n\n```go\nfunc ConvertDataType(table *model.Table) (*Table, error)\n```\nConvertDataType converts mysql data type into golang data type\n\n```go\nfunc Parse(ddl string) (*Table, error)\n```\nParse parses ddl into golang structure\n\n```go\nfunc (t *Table) ContainsTime() bool\n```\nContainsTime returns true if contains golang type time.Time\n\n","path":"github.com/melonwool/go-zero/tools/goctl/model/sql/parser","name":"parser","synopsis":"","isRedistributable":true}
