Learn R Programming

easydb (version 1.1.0)

utils_database_write_yaml: Write database yaml

Description

Writes database config details into a yaml. Usernames and passwords are never saved in this yaml file

Usage

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
)

Value

path to config yaml containing the new database info (string)

Arguments

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