This function allows the text of a SQL query to be formatted across multiple
lines in an R document, by stripping the line breaks prior to submitting the
query based on provided con
object. Also logs the queries if in debug
mode.
1 | sdr_dbExecute(con, query)
|
con |
A database connection object for RPostgres. |
query |
The query to be formatted. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.