phs_database_conn: Open a connection to a PHS database

Description Usage Arguments Value

View source: R/phs_database_conn.R

Description

Open a connection to a PHS database

Usage

1
phs_database_conn(dsn, username = Sys.getenv("USER"))

Arguments

dsn

The Data Source Name passed on to odbc::dbconnect the dsn must be setup first. e.g. SMRA or DVPROD

username

The username to use for authentication, if not supplied it first will check the environment variable and finally ask the user for input.

Value

a connection to the specified dsn


Moohan/hscfunctions documentation built on Dec. 17, 2021, 4:20 a.m.