Description Usage Arguments Examples
Generic SQL template filler
1 | sql.template.fill(template.repo, template.name, query.names, param.list)
|
template.repo |
repository of SQL templates |
template.name |
the name of the template |
query.names |
the vector of names of the generated queries (in the genereated query list) |
param.list |
the (named) list with names of parameters to be replaced and the values to be substituted |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | sql.template.fill(
some.repo,
"dictionary_values",
query.names="q1",
list("%%DICTKEY%%" = "abd", "%%QUERY%%" = "bca")
)
sql.template.fill(
some.repo,
"dictionary_values",
query.names = c("q1","q2"),
list("%%QUERY%%" = c("bca", "bcb"), "%%DICTKEY%%" = c("abd"))
)
sql.template.fill(
some.repo,
"dictionary_values",
query.names = c("q1", "q2"),
list("%%QUERY%%" = c("bca", "bcb"), "%%DICTKEY%%"=c("abc", "abd"))
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.