Merge databases - #1130
Open
yonka2019 wants to merge 2 commits into
Open
Conversation
Lets you pull the clips out of a second Ditto database into the one you are currently using, instead of having to export and import them a group at a time. MergeDB attaches the other database and copies the Main and Data rows across in one transaction. Every id is shifted above the largest id in the current database so nothing collides, and lParentID is shifted by the same amount so groups keep their children. Clips whose CRC already exists here are skipped, groups always come over, and the four shortcut columns are cleared on the merged rows so they can't fight with the existing shortcuts. Before anything is written the current database is snapshotted with VACUUM INTO to Ditto.db.merge.bak, overwritten on each merge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
you should elaborate on this pr a little even just ask Ai to do that for you a nice summary is always helpful |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.