github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/cmd/internal/ddl/columnenum/columnenum.go (about)

     1  package columnenum
     2  
     3  // ColumnType database data types
     4  type ColumnType string
     5  
     6  const (
     7  	// BitType bit
     8  	BitType ColumnType = "BIT"
     9  	// TextType text
    10  	TextType ColumnType = "TEXT"
    11  	// BlobType blob
    12  	BlobType ColumnType = "BLOB"
    13  	// DateType date
    14  	DateType ColumnType = "DATE"
    15  	// DatetimeType datatime
    16  	DatetimeType ColumnType = "DATETIME"
    17  	// DecimalType decimal
    18  	DecimalType ColumnType = "DECIMAL"
    19  	// DoubleType double
    20  	DoubleType ColumnType = "DOUBLE"
    21  	// EnumType enum
    22  	EnumType ColumnType = "ENUM"
    23  	// FloatType float
    24  	FloatType ColumnType = "FLOAT"
    25  	// GeometryType geometry
    26  	GeometryType ColumnType = "GEOMETRY"
    27  	// MediumintType medium int
    28  	MediumintType ColumnType = "MEDIUMINT"
    29  	// JSONType json
    30  	JSONType ColumnType = "JSON"
    31  	// IntType int
    32  	IntType ColumnType = "INT"
    33  	// LongtextType long text
    34  	LongtextType ColumnType = "LONGTEXT"
    35  	// LongblobType long blob
    36  	LongblobType ColumnType = "LONGBLOB"
    37  	// BigintType big int
    38  	BigintType ColumnType = "BIGINT"
    39  	// MediumtextType medium text
    40  	MediumtextType ColumnType = "MEDIUMTEXT"
    41  	// MediumblobType medium blob
    42  	MediumblobType ColumnType = "MEDIUMBLOB"
    43  	// SmallintType small int
    44  	SmallintType ColumnType = "SMALLINT"
    45  	// TinyintType tiny int
    46  	TinyintType ColumnType = "TINYINT"
    47  	// VarcharType varchar
    48  	VarcharType ColumnType = "VARCHAR(255)"
    49  )