Skip to contents

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"
)

Arguments

con

Active DuckDB DBI connection.

target_type

Character: "parquet", "postgres", "oracle", "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").

Value

A list with export status and file paths.