Description Usage Arguments Details Examples
renderSqlFile
Renders SQL code in a file based on parameterized SQL and parameter values,
and writes it to another file.
1 | renderSqlFile(sourceFile, targetFile, ...)
|
sourceFile |
The source SQL file |
targetFile |
The target SQL file |
... |
Parameter values |
This function takes parameterized SQL and a list of parameter values and renders the SQL that can be send to the server. Parameterization syntax:
Parameters are indicated using a @ prefix, and are replaced with the actual values provided in the renderSql call.
Default values for parameters can be defined using curly and the DEFAULT keyword.
The if-then-else pattern is used to turn on or off blocks of SQL code.
1 2 3 4 | ## Not run:
renderSqlFile("myParamStatement.sql", "myRenderedStatement.sql", a = "myTable")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.