Explicit checkpoint requests - #468
Merged
Merged
Conversation
simolus3
force-pushed
the
explicit-checkpoint-requests
branch
from
August 25, 2026 16:29
2ee9795 to
fc76ade
Compare
simolus3
force-pushed
the
explicit-checkpoint-requests
branch
from
September 1, 2026 10:38
7150742 to
373e307
Compare
simolus3
marked this pull request as ready for review
September 1, 2026 11:20
LucDeCaf
reviewed
Sep 2, 2026
LucDeCaf
left a comment
Contributor
There was a problem hiding this comment.
This seems correct logic-wise, but I have some comments/questions since I'm not really that familiar with Dart.
LucDeCaf
approved these changes
Sep 2, 2026
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.
This adds support for explicit checkpoint requests through
PowerSyncDatabase.requestCheckpoint(). Checkpoint requests can be issued when the database is connected, and used to wait until the serverside snapshot at the time of the checkpoint has finished syncing.The implementation here mostly follows the existing JavaScript and Kotlin implementation. A Dart-specific concern is that requesting checkpoints from workers and the isolate requires an explicit protocol.
Bildschirmaufnahme.2026-08-25.um.16.04.22.mov
AI used: I used Claude Code to help add this to the demo app and to review this.