Get a database connection as defined by a yaml configuration or environment variables
get_connection.Rd
Get a database connection as defined by a yaml configuration or environment variables
Usage
get_connection(
params = here("params.yaml"),
secret = here("secret.yaml"),
key = "db",
bigint = "integer",
...
)
Arguments
- params
a params.yaml-file that defines some of db_host, db_name and db_user under a given key
- secret
a secret.yaml-file that defines some of db_host, db_name, db_user and db_pass under a given key
- key
the key in the yaml file to extract
- bigint
how should the connection convert bigints
- ...
Other arguments passed on to
DBI::dbConnect()
,