Append a temporary DuckDB (new filings) into an existing local DuckDB
Source:R/06_update_db.R
append_to_database.RdInserts the rows from a temporary "update" database (built by
build_database() with is_update = TRUE) into a base database in place,
aligning schemas. This is the local counterpart of merge_databases():
pair it with download_s3_database() to update a large archive without
streaming the whole thing through httpfs.
Usage
append_to_database(
target_db,
temp_db_path,
tables = base::c("KEYS", "FLATXML", "ATTRIBUTES")
)