Publish a tidy ClinVar evidence export to DuckLake
Source:R/ducklake.R
rclinvarbitration_publish_ducklake.RdRegisters one tidy Parquet export in a persistent staging table, then replaces the current evidence set by key in one DuckLake transaction. New keys are inserted, absent keys are deleted, changed content is updated, and byte-identical records are left untouched. DuckLake's native data-change feed is the release-delta authority.
Usage
rclinvarbitration_publish_ducklake(
con,
export,
table_name = "clinvar",
staging_table = "clinvar_incoming",
ducklake_name = NULL,
author = "RClinVarbitration",
commit_message = NULL
)Arguments
- con
A DuckDB DBI connection whose current database is the writable DuckLake catalog.
- export
The returned value from
rclinvarbitration_export_clinvarbitration_parquet()withschema = "tidy", or the returned value fromrclinvarbitration_import_flat()whenparquet_pathwas supplied.- table_name
Persistent current-decision table.
- staging_table
Persistent empty staging table.
- ducklake_name
Attached DuckLake catalog.
NULLuses the current database.Snapshot author.
- commit_message
Snapshot message.
NULLderives one from the export.