ExprBinOp | R Documentation |
This class represents an SQL binary operator.
This class represents an SQL binary operator.
Used to generate SQL expressions involving a binary operator like in "a / 10".
sqlq::Statement
-> sqlq::Expr
-> sqlq::ExprComp
-> ExprBinOp
new()
Initializer.
ExprBinOp$new(lexpr, op, rexpr, ...)
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.
Nothing.
getTokens()
Generates the list of tokens representing this statement.
ExprBinOp$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
ExprBinOp$clone(deep = FALSE)
deep
Whether to make a deep clone.
# To generate "a / 10":
ExprBinOp$new(ExprField$new("a"), "/", ExprValue$new(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.