Table of Contents

Method GetNextCrudTransaction

Namespace
PowerSync.Common.Client
Assembly
PowerSync.Common.dll

GetNextCrudTransaction()

Get the next recorded transaction to upload.

Returns null if there is no data to upload.

Use this from the UploadData(IPowerSyncDatabase) callback.

Once the data have been successfully uploaded, call Complete(string?) before requesting the next transaction.

Unlike GetCrudBatch(int), this only returns data from a single transaction at a time. All data for the transaction is loaded into memory.

public Task<CrudTransaction?> GetNextCrudTransaction()

Returns

Task<CrudTransaction>