| configure_connection | R Documentation |
Interactively add a database connection to settings.yml (or settings.yml for legacy projects). Connections can be defined inline or in a split file (settings/connections.yml).
configure_connection(
name = NULL,
driver = NULL,
host = NULL,
port = NULL,
database = NULL,
user = NULL,
password = NULL,
interactive = TRUE
)
name |
Character. Connection name (e.g., "db", "warehouse") |
driver |
Character. Database driver: "sqlite", "postgresql", "mysql", etc. |
host |
Character. Database host (for network databases) |
port |
Integer. Database port (for network databases) |
database |
Character. Database name |
user |
Character. Database user (for network databases) |
password |
Character. Database password (stored in .env) |
interactive |
Logical. If TRUE, prompts for missing values. Default TRUE. |
Invisibly returns updated config
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.