ExprUnaryOp | R Documentation |
This class represents an SQL unary operator.
This class represents an SQL unary operator.
Used to generate SQL expressions involving an unary operator like in "NOT flag".
sqlq::Statement
-> sqlq::Expr
-> sqlq::ExprComp
-> ExprUnaryOp
new()
Initializer.
ExprUnaryOp$new(op, expr, ...)
op
The unary operator, as a string.
expr
An Expr instance.
...
Arguments to pass to parent class.
Nothing.
getTokens()
Generates the list of tokens representing this statement.
ExprUnaryOp$getTokens()
A list of Token objects.
clone()
The objects of this class are cloneable with this method.
ExprUnaryOp$clone(deep = FALSE)
deep
Whether to make a deep clone.
# To generate "NOT flag":
ExprUnaryOp$new("not", ExprField$new("flag"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.