According to the documentation for zumero_sync
:
If a large amount of information needs to be pulled from the server, this function may need to be called more than once.
In my Android app that uses Zumero that's no problem; I just keep calling zumero_sync
until the return value doesn't start with "0;"
.
However, now I'm trying to write an admin script that also syncs with my server dbfiles. I'd like to use the sqlite3
shell, and have the script pass the SQL to execute via command line arguments. I need to call zumero_sync
in a loop (which SQLite doesn't support) to make sure the db is fully synced. If I had to, I could invoke sqlite3
in a loop (reading its output, looking for "0;"
), or even write a C++ app to call the SQLite/Zumero functions natively. But it certainly would be easier if a single zumero_sync
was enough.
I guess my real question is: could zumero_sync
be changed so it completes the sync before returning? If there are cases where the existing behavior is more useful, maybe there could be a parameter for specifying which mode to use?