Description Usage Arguments Examples
Connects to a database specified in the config
file and returns a database object.
1 | db_connect(database = NULL, user_db = "shiny_mysql")
|
database |
The name of the SQL database of the server you are connecting to. If left blank, this will connect to the default database specified in the config file. |
user_db |
The name of the config profile that you are connecting to. This will default to "shiny_mysql" by default. |
1 | db_connect(database="tacos", user_db="nacho_man")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.