Ver Fonte

Added feature for storing lastSQL query on session

xormplus há 10 anos atrás
pai
commit
525e19273d
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      type.go

+ 4 - 0
type.go

@@ -53,6 +53,10 @@ func (s *SQLType) IsNumeric() bool {
 	return s.IsType(NUMERIC_TYPE)
 }
 
+func (s *SQLType) IsJson() bool {
+	return s.Name == Json
+}
+
 var (
 	Bit       = "BIT"
 	TinyInt   = "TINYINT"