Skip to content

Add soft option to DisconnectAndClear - #101

Merged
simolus3 merged 1 commit into
mainfrom
soft-clear
Sep 17, 2026
Merged

simolus3 merged 1 commit into
mainfrom
soft-clear

Conversation

@simolus3

@simolus3 simolus3 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

This adds the soft parameter (see also the Kotlin PR) to disconnectAndClear.

The parameter deletes contents from ps_data__ tables while keeping internal ps_buckets and ps_oplog intact. This means that if connect() is later called with the same user, all buckets are already going to be there and the sync completes without downloading everything again.

AI use: I asked Claude to port the JavaScript PR and made no further changes myself.

@simolus3
simolus3 requested a review from LucDeCaf September 17, 2026 14:24
@simolus3
simolus3 merged commit 3cf8305 into main Sep 17, 2026
6 checks passed
@simolus3
simolus3 deleted the soft-clear branch September 17, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants