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

Function IsComparisonOperator

internal/sql/lang/operator.go:5–18  ·  view source on GitHub ↗

TODO: This logic is PostgreSQL-specific and needs to be refactored to support MySQL

(s string)

Source from the content-addressed store, hash-verified

3// TODO: This logic is PostgreSQL-specific and needs to be refactored to support MySQL
4
5func IsComparisonOperator(s string) bool {
6 switch s {
7 case ">":
8 case "<":
9 case "<=":
10 case ">=":
11 case "=":
12 case "<>":
13 case "!=":
14 default:
15 return false
16 }
17 return true
18}
19
20func IsMathematicalOperator(s string) bool {
21 switch s {

Callers 1

outputColumnsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected