Versions in this module Expand all Collapse all v2 v2.2.3 Nov 20, 2024 v2.2.2 Nov 20, 2024 v2.2.1 Jun 14, 2024 Changes in this version + func Normalize(v string) string + type Column struct + Comment string + Enums map[string]string + GoType string + IsAutoIncrement bool + IsBinary bool + IsID bool + IsNotNull bool + IsPlural bool + IsPrimary bool + IsUnique bool + Len int + Name string + NomarlizedName string + NullableType string + Type ColumnType + type ColumnType string + const TypeBigInt + const TypeBit + const TypeBlob + const TypeDate + const TypeDatetime + const TypeDouble + const TypeDuration + const TypeEnum + const TypeFloat + const TypeGeometry + const TypeInt24 + const TypeJSON + const TypeLongBlob + const TypeLonglong + const TypeMediumBlob + const TypeNewDate + const TypeNewDecimal + const TypeNull + const TypeSet + const TypeSmallInt + const TypeString + const TypeTimestamp + const TypeTinyBlob + const TypeTinyInt + const TypeUnknown + const TypeUnspecified + const TypeVarString + const TypeVarchar + const TypeYear + func (t ColumnType) String() string + type Parser interface + ParseCreateTable func(ddl string) ([]*Table, error) + func GetParser() Parser + type Table struct + Columns []*Column + IsPlural bool + Name string + NomarlizedName string + PrimaryKeys []string + SingularName string + type TidbParser struct + func NewTidbParser() *TidbParser + func (s TidbParser) ParseCreateTable(ddl string) ([]*Table, error)