ExprCommOp | R Documentation |
This class represents an SQL logical operator.
This class represents an SQL logical operator.
Used to generate SQL expressions involving a commutative binary operator like in "a + 10 + b".
sqlq::Statement
-> sqlq::Expr
-> sqlq::ExprComp
-> ExprCommOp
new()
Initializer.
ExprCommOp$new(op, expr = NULL)
op
The logical operator, as a string.
expr
A list of logical expressions.
Nothing.
add()
Add an SQL expression to the logical operator.
ExprCommOp$add(expr)
expr
A Expr instance.
Nothing.
nb_expr()
Returns the number of expressions.
ExprCommOp$nb_expr()
The number of expressions in this logical operator.
getTokens()
Generates the list of tokens representing this statement.
ExprCommOp$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
ExprCommOp$clone(deep = FALSE)
deep
Whether to make a deep clone.
# To generate "a + 10 + b":
ExprCommOp$new("+", list(ExprField$new("a"), ExprValue$new(10),
ExprField$new("b")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.