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