Explorar o código

add IsJSON on Column

xormplus %!s(int64=8) %!d(string=hai) anos
pai
achega
62fdae93b7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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