
Delta Lake and Apache Iceberg Lakehouse Connector for OMOP DuckDB
Source:R/lakehouse.R
omop_connect_lakehouse.RdConnects to a Delta Lake or Apache Iceberg OMOP repository and dynamically
registers tables as views (v_person, v_condition_occurrence, etc.).
Usage
omop_connect_lakehouse(
lake_uri,
format = c("delta", "iceberg", "parquet"),
s3_options = NULL,
tables = NULL,
output_con = NULL,
create_bare_aliases = TRUE
)Arguments
- lake_uri
Root URI or filesystem path to the lakehouse storage directory.
- format
Lakehouse table format:
"delta","iceberg", or"parquet". The DuckDBdelta/icebergextension is installed and loaded only when a table directory is a Delta (_delta_log) or Iceberg (metadata) table or the URI is remote; a plain parquet directory is read withread_parquet()whateverformatsays. Install the extension beforehand (INSTALL delta) on machines without internet access: a failed install or load can crash the R session.- s3_options
Optional named list of S3 configuration options (endpoint, access keys, region).
- tables
Optional character vector of CDM tables to register.
- output_con
Optional existing DBI connection (creates new in-memory connection if
NULL).- create_bare_aliases
Logical indicating whether to create views without the
v_prefix (defaultTRUE).