Skip to content

Explicit checkpoint requests - #468

Merged
simolus3 merged 6 commits into
mainfrom
explicit-checkpoint-requests
Sep 2, 2026
Merged

Explicit checkpoint requests#468
simolus3 merged 6 commits into
mainfrom
explicit-checkpoint-requests

Conversation

@simolus3

@simolus3 simolus3 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

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.

@simolus3
simolus3 force-pushed the explicit-checkpoint-requests branch from 2ee9795 to fc76ade Compare August 25, 2026 16:29
Base automatically changed from new-checkpoint-request-protocol to main September 1, 2026 10:33
@simolus3
simolus3 force-pushed the explicit-checkpoint-requests branch from 7150742 to 373e307 Compare September 1, 2026 10:38
@simolus3
simolus3 marked this pull request as ready for review September 1, 2026 11:20
@simolus3
simolus3 requested a review from LucDeCaf September 1, 2026 13:08

@LucDeCaf LucDeCaf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems correct logic-wise, but I have some comments/questions since I'm not really that familiar with Dart.

Comment thread packages/powersync/lib/src/sync/connection_manager.dart
Comment thread packages/powersync/lib/src/sync/streaming_sync.dart
@simolus3
simolus3 merged commit 4a94a45 into main Sep 2, 2026
13 checks passed
@simolus3
simolus3 deleted the explicit-checkpoint-requests branch September 2, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants