Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnType ¶
type ColumnType string
const ( TypeUnknown ColumnType = "" TypeUnspecified ColumnType = "Unspecified" TypeTinyInt ColumnType = "Tiny" TypeSmallInt ColumnType = "Small" TypeBigInt ColumnType = "Big" TypeFloat ColumnType = "Float" TypeDouble ColumnType = "Double" TypeNull ColumnType = "Null" TypeTimestamp ColumnType = "Timestamp" TypeLonglong ColumnType = "Longlong" TypeInt24 ColumnType = "Int24" TypeDate ColumnType = "Date" TypeDuration ColumnType = "Duration" TypeDatetime ColumnType = "Datetime" TypeYear ColumnType = "Year" TypeNewDate ColumnType = "NewDate" TypeVarchar ColumnType = "Varchar" TypeBit ColumnType = "Bit" TypeJSON ColumnType = "JSON" TypeNewDecimal ColumnType = "NewDecimal" TypeEnum ColumnType = "Enum" TypeSet ColumnType = "Set" TypeTinyBlob ColumnType = "TinyBlob" TypeMediumBlob ColumnType = "MediumBlob" TypeLongBlob ColumnType = "LongBlob" TypeBlob ColumnType = "Blob" TypeVarString ColumnType = "VarString" TypeString ColumnType = "String" TypeGeometry ColumnType = "Geometry" )
func (ColumnType) String ¶
func (t ColumnType) String() string
type TidbParser ¶
type TidbParser struct {
// contains filtered or unexported fields
}
func NewTidbParser ¶
func NewTidbParser() *TidbParser
func (TidbParser) ParseCreateTable ¶
func (s TidbParser) ParseCreateTable(ddl string) ([]*Table, error)
Click to show internal directories.
Click to hide internal directories.