MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / ifValueInterfaceInArray

Function ifValueInterfaceInArray

engine/engine.go:724–735  ·  view source on GitHub ↗
(array []ast.Anonymitifier, valueLeft ValueInterface)

Source from the content-addressed store, hash-verified

722}
723
724func ifValueInterfaceInArray(array []ast.Anonymitifier, valueLeft ValueInterface) (bool, error) {
725 for _, expectedValue := range array {
726 value, err := getInterfaceValue(expectedValue.Token)
727 if err != nil {
728 return false, err
729 }
730 if value.IsEqual(valueLeft) {
731 return true, nil
732 }
733 }
734 return false, nil
735}
736
737func processOperationExpression(row map[string]ValueInterface, operationExpression *ast.OperationExpression, commandName string) (bool, error) {
738 if operationExpression.Operation.Type == token.AND {

Callers 1

processContainExpressionFunction · 0.85

Calls 2

getInterfaceValueFunction · 0.85
IsEqualMethod · 0.65

Tested by

no test coverage detected