Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (中文) » MobiLink - 服务器管理 » MobiLink 事件 » 编写同步脚本

 

脚本和同步过程

每个脚本对应于同步过程中的一个特定事件。仅当某个操作必须发生时才编写脚本。所有不必要的事件都无需定义。

同步过程的两个主要部分是处理上载的信息和准备要下载的行。如果从远程表上载行,则您必须定义相应的上载脚本。如果表通过 SQL 下载行,则必须定义 download_cursor 和 download_delete_cursor 脚本。

MobiLink 服务器将在首次需要脚本时读取并准备脚本,且每个脚本仅读取和准备一次。然后,每当调用事件时,脚本都会被执行。

 事件序列
 注意