getNextCrudTransaction method

Future<CrudTransaction?> getNextCrudTransaction()
inherited

Get the next recorded transaction to upload.

Returns null if there is no data to upload.

Use this from the PowerSyncBackendConnector.uploadData` callback.

Once the data have been successfully uploaded, call CrudTransaction.complete before requesting the next transaction.

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

Implementation

Future<CrudTransaction?> getNextCrudTransaction() {
  return getCrudTransactions().firstOrNull;
}