CheckpointMode

sealed class CheckpointMode(source)

The mechanism used to request checkpoints from the PowerSync service.

Checkpoint requests are used after a client uploads local mutations (or when explicitly requested on the database). The PowerSync service later references them in downloaded data, allowing the SDK to assume that uploaded data has been synced down again.

There are two ways to send checkpoint requests: A Legacy (but default and stable) format supported by all PowerSync service versions, and a newer Requests method which is only available from PowerSync service version 1.24.0 or later.

Note that the requests checkpoint mode is an alpha API.

Inheritors

Types

Link copied to clipboard

Uses a legacy but stable endpoint to request checkpoints.

Link copied to clipboard
data class Requests(val retryDelay: Duration = defaultRetryDelay) : CheckpointMode

Adopts a new and more efficient checkpoint protocol with better support for switching users on devices.