MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetBinaryFunction

Function GetBinaryFunction

server/functions/framework/operators.go:138–145  ·  view source on GitHub ↗

GetBinaryFunction returns the binary function that matches the given operator.

(operator Operator)

Source from the content-addressed store, hash-verified

136
137// GetBinaryFunction returns the binary function that matches the given operator.
138func GetBinaryFunction(operator Operator) IntermediateFunction {
139 // Returns nil if not found, which is fine as IntermediateFunction will handle the nil deducer
140 return IntermediateFunction{
141 Functions: binaryOperatorOverloads[operator],
142 AllOverloads: binaryOperatorPermutations[operator],
143 IsOperator: true,
144 }
145}
146
147// String returns the string form of the operator.
148func (o Operator) String() string {

Callers 10

callComparisonFunctionFunction · 0.92
WithChildrenMethod · 0.92
WithChildrenMethod · 0.92
evalMethod · 0.92
anySubqueryWithChildrenFunction · 0.92
WithResolvedChildrenMethod · 0.92
WithChildrenMethod · 0.92
WithChildrenMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected