CheckpointRequest
A checkpoint request created by com.powersync.PowerSyncDatabase.requestCheckpoint.
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 {@link CommonPowerSyncDatabase#disconnectAndClear}, instances created before a clear should be discarded and requested again.