MCPcopy
hub / github.com/sqlc-dev/sqlc / IsMathematicalOperator

Function IsMathematicalOperator

internal/sql/lang/operator.go:20–43  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

18}
19
20func IsMathematicalOperator(s string) bool {
21 switch s {
22 case "+":
23 case "-":
24 case "*":
25 case "/":
26 case "%":
27 case "^":
28 case "|/":
29 case "||/":
30 case "!":
31 case "!!":
32 case "@":
33 case "&":
34 case "|":
35 case "#":
36 case "~":
37 case "<<":
38 case ">>":
39 default:
40 return false
41 }
42 return true
43}

Callers 1

outputColumnsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected