send_query | R Documentation |
Function to send to a database.
send_query(
query = NULL,
drv,
dbname,
immediate = TRUE,
cred_file = NULL,
...,
quiet = FALSE
)
query |
A query string. |
drv |
A database driver. |
dbname |
Name of database. |
immediate |
TRUE Needed to send multiple statements in |
cred_file |
An .R file containing the necessary credentials to connect to a different databases (e.g. PostgreSQL). Can contain variables: user, host, port, password, dbname. |
... |
Arguments passed on to |
quiet |
Quiet function call? |
Andreas Scharmueller, andschar@proton.me
# connection to database required
read_query(query = "SELECT * FROM schema.table LIMIT 1;",
cred_file = cred.R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.