OSDN Git Service

fix commands
[bytom/shuttle.git] / vendor / github.com / bytom / blockchain / query / filter / operators.go
diff --git a/vendor/github.com/bytom/blockchain/query/filter/operators.go b/vendor/github.com/bytom/blockchain/query/filter/operators.go
new file mode 100644 (file)
index 0000000..a46be47
--- /dev/null
@@ -0,0 +1,13 @@
+package filter
+
+type binaryOp struct {
+       precedence int
+       name       string // AND, =, etc.
+       sqlOp      string
+}
+
+var binaryOps = map[string]*binaryOp{
+       "OR":  {1, "OR", "OR"},
+       "AND": {2, "AND", "AND"},
+       "=":   {3, "=", "="},
+}