MCPcopy Index your code
hub / github.com/upper/db / comparisonOperatorMapper

Method comparisonOperatorMapper

internal/sqlbuilder/template.go:142–155  ·  view source on GitHub ↗
(t adapter.ComparisonOperator)

Source from the content-addressed store, hash-verified

140}
141
142func (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
157func (tu *templateWithUtils) toColumnValues(term interface{}) (cv exql.ColumnValues, args []interface{}) {
158 args = []interface{}{}

Callers 2

toColumnValuesMethod · 0.95
preprocessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected