create_db_connection: Create Database Connection Function

View source: R/create_db_connection.R

create_db_connectionR Documentation

Create Database Connection Function

Description

Create a connection to the prod or dev servers that APDE uses

Usage

create_db_connection(
  server = c("phextractstore", "hhsaw", "inthealth"),
  prod = TRUE,
  interactive = FALSE
)

Arguments

server

Whether we are connecting to HHSAW, inthealth, or phextractstore

prod

Whether the production or dev/WIP servers are to be used. Defaults to prod = TRUE.

interactive

Whether to input password manually for HHSAW/inthealth or to use keyring. True should be used when connecting on VM, typically, or if keyring/odbc are not set up yet for a given server. Defaults to interactive = FALSE.

Author(s)

Jeremy Whitehurst

Kai Fukutaki


PHSKC-APDE/apde documentation built on April 14, 2025, 10:46 a.m.