Polyglot SQL API Documentation - v0.1.0
    Preparing search index...

    Type Alias BinaryOp

    Represent a binary operation (two operands separated by an operator).

    This is the shared payload struct for all binary operator variants in the [Expression] enum: arithmetic (Add, Sub, Mul, Div, Mod), comparison (Eq, Neq, Lt, Gt, etc.), logical (And, Or), bitwise, and dialect-specific operators. Comment fields enable round-trip preservation of inline comments around operators.

    type BinaryOp = {
        left: Expression;
        left_comments: string[];
        operator_comments: string[];
        right: Expression;
        trailing_comments: string[];
    }
    Index

    Properties

    left_comments: string[]

    Comments after the left operand (before the operator)

    operator_comments: string[]

    Comments after the operator (before the right operand)

    right: Expression
    trailing_comments: string[]

    Comments after the right operand