utils_database_write_yaml | R Documentation |
Writes database config details into a yaml. Usernames and passwords are never saved in this yaml file
utils_database_write_yaml( dbname, driver, creds_required = FALSE, port = NULL, host = NULL, ssl_cert = NULL, ssl_key = NULL, ssl_ca = NULL, file, append = TRUE )
dbname |
name of database |
driver |
name of driver |
creds_required |
are credentials (username/password) required for this database (flag) |
port |
database port |
host |
database host |
ssl_cert |
path to ssl certificate (string) |
ssl_key |
path to ssl key (string) |
ssl_ca |
path to ssl CA certificate (string) |
file |
where config file should be located (will be produced if it doesn't already exist) |
append |
should config file be appended or overwritten? Defualts to append. Don't change unless you know what you're doing |
path to config yaml containing the new database info (string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.