Table of Contents

Namespace PowerSync.Common.Client.Sync

Namespaces

PowerSync.Common.Client.Sync.Bucket
PowerSync.Common.Client.Sync.Stream

Classes

CheckpointRequest

A checkpoint request created by RequestCheckpoint(CancellationToken).

Use this value to wait until the local database has applied server-side changes up to the requested checkpoint. This is useful for explicit refresh flows where the caller wants confirmation that the local view has caught up to the service.

Checkpoint requests are backed by request ids tracked in the local database, so they are reusable across disconnect and reconnect cycles. A wait interrupted by a disconnect throws an error, but the same request can be awaited again once a new connection is established.

Requests do not survive DisconnectAndClear(bool), instances created before a clear should be discarded and requested again.

CheckpointRequestException

An exception related to checkpoint requests.