MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / BinaryExpression

Struct BinaryExpression

pkg/sql/ast/ast.go:979–986  ·  view source on GitHub ↗

BinaryExpression represents binary operations between two expressions. BinaryExpression supports all standard SQL binary operators plus PostgreSQL-specific operators including JSON/JSONB operators added in v1.6.0. Fields: - Left: Left-hand side expression - Operator: Binary operator (=, <, >, +, -

Source from the content-addressed store, hash-verified

977// - ?& (QuestionAnd): All of the keys exist
978// - #- (HashMinus): Delete key from JSON
979type BinaryExpression struct {
980 Left Expression
981 Operator string
982 Right Expression
983 Not bool // For NOT (expr)
984 CustomOp *CustomBinaryOperator // For PostgreSQL custom operators
985 Pos models.Location // Source position of the operator (1-based line and column)
986}
987
988func (b *BinaryExpression) expressionNode() {}
989

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected