Writes data to a datom repository. Commits to git, pushes, and syncs to S3.
Usage
datom_write(
conn,
data = NULL,
name = NULL,
metadata = NULL,
message = NULL,
parents = NULL,
.table_type = "derived",
.original_file_sha = NULL,
.original_format = NULL
)Arguments
- conn
A
datom_connobject fromdatom_get_conn().- data
Data frame to write. If NULL with name, does metadata-only sync.
- name
Table name. If NULL with NULL data, aliases to
datom_sync_dispatch().- metadata
Optional list of custom metadata.
- message
Optional commit message.
- parents
Optional lineage: list of
list(source, table, version)entries. Used by dp_dev to track dependency versions. NULL if lineage not recorded.- .table_type
Internal.
"derived"(default) or"imported"(set bydatom_sync()).- .original_file_sha
Internal. SHA of source file (set by
datom_sync()); NULL for derived.- .original_format
Internal. Original file format (set by
datom_sync()); NULL for derived.