Sfoglia il codice sorgente

Added feature for storing lastSQL query on session

xormplus 10 anni fa
parent
commit
525e19273d
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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"