R/chunks.R
sql_chunk.Rd
For more details and examples, please see the package README.md
.
sql_chunk(key, ..., indent_after_linebreak = 0)
key | optional key defined in |
---|---|
... | passed to |
indent_after_linebreak | integer for extra indent |
string
if (FALSE) { sql_chunk_files(system.file('example_sql_chunks.yaml', package = 'dbr')) sql_chunk('dbr.shinydemo.countries.count') ## pass it right away to a database countries <- db_query(sql_chunk('dbr.shinydemo.countries.count'), 'shinydemo') ## example for a more complex query cities <- db_query(sql_chunk('dbr.shinydemo.cities.europe'), 'shinydemo') }