cdm_from_con {CDMConnector} | R Documentation |
Create a CDM reference object from a database connection
cdm_from_con(
con,
cdm_schema = NULL,
write_schema = NULL,
cohort_tables = NULL,
cdm_version = "5.3",
cdm_name = NULL
)
cdmFromCon(
con,
cdmSchema = NULL,
writeSchema = NULL,
cohortTables = NULL,
cdmVersion = "5.3",
cdmName = NULL
)
con |
A DBI database connection to a database where an OMOP CDM v5.4 or v5.3 instance is located. |
cdm_schema , cdmSchema |
The schema where the OMOP CDM tables are located. Defaults to NULL. |
write_schema , writeSchema |
An optional schema in the CDM database that the user has write access to. |
cohort_tables , cohortTables |
A character vector listing the cohort table names to be included in the CDM object. |
cdm_version , cdmVersion |
The version of the OMOP CDM: "5.3" (default), "5.4", "auto". "auto" attempts to automatically determine the cdm version using heuristics. Cohort tables must be in the write_schema. |
cdm_name , cdmName |
The name of the CDM. If NULL (default) the cdm_source_name . field in the CDM_SOURCE table will be used. |
A list of dplyr database table references pointing to CDM tables