getDbConfig: Get database connection configuration

View source: R/dbConnection.R

getDbConfigR Documentation

Get database connection configuration

Description

Get database connection configuration

Usage

getDbConfig(dbName = "data")

Arguments

dbName

String providing the name of the database to connect to. If it is "data" it will use the MYSQL_DB_DATA environment variable, if it is "autoreport" it will use the MYSQL_DB_AUTOREPORT environment variable, and if it is "raplog" it will use the MYSQL_DB_LOG environment variable. If none of these are set, it will use the name provided.

Value

A list with name, user, password and host of the db connection.


Rapporteket/rapbase documentation built on June 10, 2025, 4:58 a.m.