QueryDelete | R Documentation |
Delete query.
Delete query.
This class represents an SQL SELECT query. See the function make_delete() to create more easily a QueryDelete object.
sqlq::Query
-> QueryDelete
new()
Initializer.
QueryDelete$new(delete)
delete
A StmtDelete instance.
Nothing.
clone()
The objects of this class are cloneable with this method.
QueryDelete$clone(deep = FALSE)
deep
Whether to make a deep clone.
make_delete
# Create a simple DELETE query for deleting some old books:
where <- StmtWhere$new(ExprBinOp$new(
ExprField$new("year"), "<",
ExprValue$new(2015)
))
delete <- QueryDelete$new(StmtDelete$new('books'))
delete$add(where)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.