utils_database_get_or_set_creds {easydb} | R Documentation |
Create/Retrieve database credentials
Description
Retrieves credentials (username and password) from os credential store using keyring package.
Usage
utils_database_get_or_set_creds(dbname)
Arguments
dbname |
Name of database to store/retrieve credentials for (string) |
Value
Invisibly returns list of username and password
Examples
## Not run:
creds <- easydb::util_get_database_creds(
service = "R-keyring-test-service",
username = "donaldduck"
)
creds$username
creds$password
## End(Not run)
[Package easydb version 1.1.0 Index]