
Connect to database
connect_database.RdGeneric function to connect to main or taxa database
Usage
connect_database(
db_type = c("main", "taxa"),
pass = NULL,
user = NULL,
reset = FALSE,
retry = TRUE,
use_env_credentials = FALSE
)Arguments
- db_type
One of `"main"` or `"taxa"`.
- pass
Password. If NULL, will check environment then prompt.
- user
Username. If NULL, will check environment then prompt.
- reset
If TRUE, forces new credential prompt.
- retry
If TRUE, retry on failure.
- use_env_credentials
If TRUE, tries to use MYDB_USER and MYDB_PASS from .Renviron (default: FALSE)