Add database-library merge #48
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some data will be kept in the database only which means that at startup the database and library information must be merged.
load_from_database
to theMusicHoard
struct.load_from_database
is called, it is merged with the current in-memory collection. In-memory state ALWAYS wins. The assumption is that it will either have extra information from the library which is the ultimate source of truth.rescan_library
is called the resulting collection is merged with the in-memory collection. The collection from the library ALWAYS wins. The library is the ultimate source of truth.Since the binary currently doesn't really read/write from/to a database, this issue should also add consistent read/write behaviour to the binary. Since there are currently no options for editing the database this means reading on startup and writing on exit.
If the database does not exist on startup, this should not be an error.
Add database-library merge during startupto Add database-library merge