Closed gjost closed 1 year ago
Slight tweaks to behave similarly to ddrimport
:
namesdb dump [OPTIONS] MODEL CSV_PATH -l/--limit TEXT -c/--cols TEXT -d/--debug
It's possible to dump only certain columns
namesdb load [OPTIONS] MODEL CSV_PATH USERNAME
Only columns present in the CSV will be modified; columns missing from the CSV will not be modified.
Loading linking data e.g. personfacility
,farrecordperson
,wrarecordperson
is more restrictive (cols cannot be deleted) but then all the data is necessary for those connections.
Got the NRID minting in namesdb load
for rows with missing NRIDs almost working. It works in theory but I'm hooking up my local IDservice instance.
Added as of commit 70c7b42
, merged into develop
in commit 2cb7f4c
mod import to get an NRID if absent (add switch) (similar to how ddrimport works re DDR ids) (if ID present, use it, otherwise mint a new NRID if not disabled) don't update missing columns ignore links (i.e. Person->Location, Person->WRA, Person->FAR)