Skip to contents

Connects to the AmsterdamUMCdb or CDM database based on config.yaml in the user config folder.

Usage

connect(database = "cdm", default_schema = "")

Arguments

database

Database to use, either "amsterdamumcdb", "cdm", "results", or "temp". Default: "cdm"

default_schema

Default schema to use as the search path. By default, this will be set to the value of schema in the configuration section of database

Value

DatabaseConnector Connection object

Examples

conn <- connect()
#> Connecting using PostgreSQL driver
#> Executing SQL took 0.0118 secs
conn <- connect("amsterdamumcdb")
#> Connecting using PostgreSQL driver
#> Executing SQL took 0.00496 secs