Learn R Programming

easydb (version 1.1.0)

utils_database_get_or_set_creds: 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)

Value

Invisibly returns list of username and password

Arguments

dbname

Name of database to store/retrieve credentials for (string)

Examples

Run this code
if (FALSE) {
creds <- easydb::util_get_database_creds(
  service = "R-keyring-test-service",
  username = "donaldduck"
)
creds$username
creds$password
}

Run the code above in your browser using DataLab