Skip to contents

Provides 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,
  integer64 = c("auto", "always", "never")
)

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 (default TRUE).

integer64

"auto" (default), "always" or "never"; see plp_database_details().

Value

A list with connectionDetails, cdmDatabaseSchema, cohortDatabaseSchema, cohortTable.