add IsJSON on Column

This commit is contained in:
Lunny Xiao 2017-07-20 20:04:00 +08:00
parent e9b7412d75
commit d33f21fcb7
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 5 additions and 4 deletions

View File

@ -13,12 +13,13 @@ const (
ONLYFROMDB
)
// database column
// Column defines database column
type Column struct {
Name string
TableName string
FieldName string
SQLType SQLType
IsJSON bool
Length int
Length2 int
Nullable bool

View File

@ -117,9 +117,9 @@ var (
Integer: NUMERIC_TYPE,
BigInt: NUMERIC_TYPE,
Enum: TEXT_TYPE,
Set: TEXT_TYPE,
Json: TEXT_TYPE,
Enum: TEXT_TYPE,
Set: TEXT_TYPE,
//Json: TEXT_TYPE,
Jsonb: TEXT_TYPE,
Char: TEXT_TYPE,