gitlab.com/evatix-go/core@v1.3.55/corecomparator/vars.go (about)

     1  package corecomparator
     2  
     3  var (
     4  	CompareNames = [...]string{
     5  		Equal:            "Equal",
     6  		LeftGreater:      "LeftGreater",
     7  		LeftGreaterEqual: "LeftGreaterEqual",
     8  		LeftLess:         "LeftLess",
     9  		LeftLessEqual:    "LeftLessEqual",
    10  		NotEqual:         "NotEqual",
    11  		Inconclusive:     "Inconclusive",
    12  	}
    13  
    14  	CompareOperatorsSymbols = [...]string{
    15  		Equal:            "=",
    16  		LeftGreater:      ">",
    17  		LeftGreaterEqual: ">=",
    18  		LeftLess:         "<",
    19  		LeftLessEqual:    "<=",
    20  		NotEqual:         "!=",
    21  		Inconclusive:     "?!",
    22  	}
    23  
    24  	CompareOperatorsShotNames = [...]string{
    25  		Equal:            "eq",
    26  		LeftGreater:      "gt",
    27  		LeftGreaterEqual: "ge",
    28  		LeftLess:         "lt",
    29  		LeftLessEqual:    "le",
    30  		NotEqual:         "ne",
    31  		Inconclusive:     "i",
    32  	}
    33  
    34  	SqlCompareOperators = [...]string{
    35  		Equal:            "=",
    36  		LeftGreater:      ">",
    37  		LeftGreaterEqual: ">=",
    38  		LeftLess:         "<",
    39  		LeftLessEqual:    "<=",
    40  		NotEqual:         "<>",
    41  		Inconclusive:     "i",
    42  	}
    43  
    44  	RangesMap = map[string]Compare{
    45  		Equal.Name():                         Equal,
    46  		LeftGreater.Name():                   LeftGreater,
    47  		LeftGreaterEqual.Name():              LeftGreaterEqual,
    48  		LeftLess.Name():                      LeftLess,
    49  		LeftLessEqual.Name():                 LeftLessEqual,
    50  		NotEqual.Name():                      NotEqual,
    51  		Inconclusive.Name():                  Inconclusive,
    52  		Equal.NumberString():                 Equal,
    53  		LeftGreater.NumberString():           LeftGreater,
    54  		LeftGreaterEqual.NumberString():      LeftGreaterEqual,
    55  		LeftLess.NumberString():              LeftLess,
    56  		LeftLessEqual.NumberString():         LeftLessEqual,
    57  		NotEqual.NumberString():              NotEqual,
    58  		Inconclusive.NumberString():          Inconclusive,
    59  		Equal.NumberJsonString():             Equal,
    60  		LeftGreater.NumberJsonString():       LeftGreater,
    61  		LeftGreaterEqual.NumberJsonString():  LeftGreaterEqual,
    62  		LeftLess.NumberJsonString():          LeftLess,
    63  		LeftLessEqual.NumberJsonString():     LeftLessEqual,
    64  		NotEqual.NumberJsonString():          NotEqual,
    65  		Inconclusive.NumberJsonString():      Inconclusive,
    66  		Equal.OperatorSymbol():               Equal,
    67  		LeftGreater.OperatorSymbol():         LeftGreater,
    68  		LeftGreaterEqual.OperatorSymbol():    LeftGreaterEqual,
    69  		LeftLess.OperatorSymbol():            LeftLess,
    70  		LeftLessEqual.OperatorSymbol():       LeftLessEqual,
    71  		NotEqual.OperatorSymbol():            NotEqual,
    72  		Inconclusive.OperatorSymbol():        Inconclusive,
    73  		Equal.OperatorShortForm():            Equal,
    74  		LeftGreater.OperatorShortForm():      LeftGreater,
    75  		LeftGreaterEqual.OperatorShortForm(): LeftGreaterEqual,
    76  		LeftLess.OperatorShortForm():         LeftLess,
    77  		LeftLessEqual.OperatorShortForm():    LeftLessEqual,
    78  		NotEqual.OperatorShortForm():         NotEqual,
    79  		Inconclusive.OperatorShortForm():     Inconclusive,
    80  	}
    81  )