
CohortMethod database connection details for an omop-duck-db DuckDB file
Source:R/hades_bridge.R
cm_database_details.RdProvides native DuckDB DatabaseConnector details and schemas for OHDSI CohortMethod:
DatabaseConnector::createConnectionDetails(dbms = "duckdb", server = db_path).
Usage
cm_database_details(
db_path,
cdm_database_schema = "main",
cohort_database_schema = cdm_database_schema,
cohort_table = "cohort",
preflight = TRUE
)Arguments
- db_path
Path to the DuckDB database file.
- cdm_database_schema
Schema holding the CDM tables (default
"main").- cohort_database_schema
Schema holding the cohort table (default: the CDM schema).
- cohort_table
Cohort table name in OHDSI format (default
"cohort").- preflight
Run
hades_preflight()first and stop on failure (defaultTRUE).