Exports OMOP CDM tables to partitioned Parquet, PostgreSQL, Oracle, or CSV/TSV.
Usage
export_cdm(
con,
target_type,
output_path,
tables = NULL,
partition_by = NULL,
compression = "zstd",
oracle_max_identifier = 30L
)Arguments
- con
Active DuckDB DBI connection.
- target_type
Character:
"parquet","postgres","oracle","sqlserver","snowflake","bigquery","csv", or"tsv".- output_path
Character destination directory path or connection string.
- tables
Optional character vector of table names (default: all populated CDM tables).
- partition_by
Optional named list of table -> SQL partition expression (for Parquet).
- compression
Character compression codec for Parquet (default
"zstd").- oracle_max_identifier
30 (Oracle < 12.2, the safe default) or 128; longer identifiers raise an error.
