ExprBinOp: This class represents an SQL binary operator.

ExprBinOpR Documentation

This class represents an SQL binary operator.

Description

This class represents an SQL binary operator.

This class represents an SQL binary operator.

Details

Used to generate SQL expressions involving a binary operator like in "a / 10".

Super classes

sqlq::Statement -> sqlq::Expr -> sqlq::ExprComp -> ExprBinOp

Methods

Public methods

Inherited methods

Method new()

Initializer.

Usage
ExprBinOp$new(lexpr, op, rexpr, ...)
Arguments
lexpr

An Expr instance for the left part.

op

The binary operator, as a string.

rexpr

An Expr instance for the right part.

...

Arguments to pass to parent class.

Returns

Nothing.


Method getTokens()

Generates the list of tokens representing this statement.

Usage
ExprBinOp$getTokens()
Returns

A list of Token objects.


Method clone()

The objects of this class are cloneable with this method.

Usage
ExprBinOp$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

# To generate "a / 10":
ExprBinOp$new(ExprField$new("a"), "/", ExprValue$new(10))


sqlq documentation built on Sept. 16, 2025, 9:10 a.m.