瀏覽代碼

add IsJSON on Column

xormplus 9 年之前
父節點
當前提交
62fdae93b7
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  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