github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/blockchain/query/filter/operators.go (about)

     1  package filter
     2  
     3  type binaryOp struct {
     4  	precedence int
     5  	name       string // AND, =, etc.
     6  	sqlOp      string
     7  }
     8  
     9  var binaryOps = map[string]*binaryOp{
    10  	"OR":  {1, "OR", "OR"},
    11  	"AND": {2, "AND", "AND"},
    12  	"=":   {3, "=", "="},
    13  }