Browse Source

add IsJSON on Column

xormplus 8 years ago
parent
commit
62fdae93b7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      column.go

+ 2 - 1
column.go

@@ -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