Description Usage Arguments Value See Also Examples
Execute an SQL query in a database
1 2 3 4 5 6 7 |
sql |
string |
db |
database reference by name or object |
... |
passed to |
sql_formatter |
function to be applied on |
output_format |
preferred output format that defaults to |
data.frame with query metadata
1 2 3 4 5 6 | ## Not run:
options('dbr.db_config_path' = system.file('example_db_config.yaml', package = 'dbr'))
db_query('SELECT 42', 'sqlite')
db_query('SELECT {40 + 2}', 'sqlite')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.