Skip to content

Conversation

simolus3
Copy link
Contributor

This expands powersync_clear() to add the option of a "soft" clear which:

  • still deletes public ps_data tables, but
  • keeps ps_buckets and ps_oplog state around.

The idea is that this could be used for apps where users are frequently logging out and in again. When a user logs out and then back in again (same user), this would allow the sync to progress much faster because existing data is already there. If a different user logs in, no data would be visible until the next sync (which also deletes data for the old user).

@simolus3 simolus3 merged commit 637fda0 into main Sep 23, 2025
23 checks passed
@simolus3 simolus3 deleted the soft-clear branch September 23, 2025 14:15
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