Sync
function allows you to sync manually the local database with the remote counterpart:
WithSyncInterval
and passing a time.Duration
as an argument. For example, to sync every minute, you can use the following code:
WithReadYourWrites(false)
: