Description Usage Arguments Examples
This is a convenience function that should prevent sql injection attacks (which in the context of dplyr are most likely to be accidental not deliberate) by automatically escaping all expressions in the input, while treating bare strings as sql. This is unlikely to prevent any serious attack, but should make it unlikely that you produce invalid sql.
1 | build_sql(..., .env = parent.frame(), con = NULL)
|
... |
input to convert to SQL. Use |
.env |
the environment in which to evalute the arguments. Should not be needed in typical use. |
con |
database connection; used to select correct quoting characters. |
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.