uploadData abstract method

Future<void> uploadData(
  1. PowerSyncDatabase database
)

Upload local changes to the app backend.

Use PowerSyncDatabase.getCrudBatch to get a batch of changes to upload.

Any thrown errors will result in a retry after the configured wait period (default: 5 seconds).

Implementation

Future<void> uploadData(PowerSyncDatabase database);