If exclusive=FALSE
(the default), configuration files will be sought in the
directory returned by rappdirs::site_config_dir()
, the directory returned
by rappdirs::user_config_dir()
, and finally a file named by
config_filename
(if not NA
). If elements of those files conflict, later
files overwrite the elements of earlier files.
If exclusive=TRUE
, only 1 file, indicated by the
config_filename
parameter, will be read.
If config_filename = "site"
, a config file called
sqlhelper_db_conf.yml
will be sought in the directory returned by
rappdirs::site_config_dir()
If config_filename = "user"
, a config file called
sqlhelper_db_conf.yml
will be sought in the directory returned by
rappdirs::user_config_dir()
If config_filename
is not NULL
(but not "site" or "user"), it is
assumed to name a file.
A warning is raised if no valid configurations are found (e.g. connect()
is
called without arguments and no site- or user-wide files are present, or the
connections in those files are invalid)
vignette("connections")
explains how to write a
config file and how to access the created connections.