(t adapter.ComparisonOperator)
| 140 | } |
| 141 | |
| 142 | func (tu *templateWithUtils) comparisonOperatorMapper(t adapter.ComparisonOperator) string { |
| 143 | if t == adapter.ComparisonOperatorCustom { |
| 144 | return "" |
| 145 | } |
| 146 | if tu.ComparisonOperator != nil { |
| 147 | if op, ok := tu.ComparisonOperator[t]; ok { |
| 148 | return op |
| 149 | } |
| 150 | } |
| 151 | if op, ok := comparisonOperators[t]; ok { |
| 152 | return op |
| 153 | } |
| 154 | panic(fmt.Sprintf("unsupported comparison operator %v", t)) |
| 155 | } |
| 156 | |
| 157 | func (tu *templateWithUtils) toColumnValues(term interface{}) (cv exql.ColumnValues, args []interface{}) { |
| 158 | args = []interface{}{} |
no outgoing calls
no test coverage detected