Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
防止同步期间来自 UltraLite 数据库的更改被上载。
根据所使用的 API 不同,语法会有所变化。
False
Boolean
强制回应和仅上载
当发生仅下载同步时,不上载数据更改。但是,仍会上载有关进度计数器中存储的模式和值的信息。已下载数据与远程数据库中尚未上载的更改发生冲突时,同步将失败并回退。
对 UltraLite Java 版数据库执行仅下载同步时,应定期执行完全同步,以减少在同步远程数据库时所扫描的事务日志量。否则,完成同步所需的时间将越来越长。
以下示例说明如何使用 ulsync 实用程序设置 DownloadOnly 同步参数:
ulsync -c DBF=myuldb.udb "MobiLinkUid=remoteA;ScriptVersion=2;DownloadOnly=ON;Stream=http"
UltraLite for C/C++ 应用程序可以按如下方法设置参数:
ul_sync_info info; // ... info.download_only = ul_true;