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
)
path to config yaml containing the new database info (string)
name of database
name of driver
are credentials (username/password) required for this database (flag)
database port
database host
path to ssl certificate (string)
path to ssl key (string)
path to ssl CA certificate (string)
where config file should be located (will be produced if it doesn't already exist)
should config file be appended or overwritten? Defualts to append. Don't change unless you know what you're doing