RunSQL | R Documentation |
Connects to SQL database and returns the result of a query
RunSQL(
query,
data_provider,
server,
database,
user,
password = "",
max_records = 100,
port = 1433,
warehouse = ""
)
query |
SQL query to generate data returned |
data_provider |
Type of database. One of "MySQL", "Postgres", "Redshift", "Oracle", "Snowflake", "SQL Server". |
server |
Host name or IP where data base is hosted |
database |
Name of database |
user |
User name of data base account |
password |
Password of data base account |
max_records |
Maximum number of rows returned in 'query' |
port |
Port number to connect to data base |
warehouse |
Data base warehouse (only for snowflake database) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.