Update the artifact sidecar for path to include primary-key metadata
(pk element). The artifact file itself is not rewritten. By default the
function validates the provided keys against the current on-disk artifact
(and optionally checks uniqueness). Use validate = FALSE to skip
validation and perform a pure metadata update.
Arguments
- path
Path to the artifact file whose sidecar will be updated.
- keys
Character vector of column names to set as the primary key.
- validate
Logical; when
TRUEvalidate keys against the on-disk data.- check_unique
Logical; when
TRUEassert that the keys uniquely identify rows in the on-disk data (ifvalidate = TRUE).