Overview of MobiLink events
When a synchronization request occurs and the MobiLink server decides that a new consolidated database connection must be created, the begin_connection event is fired and synchronization starts.
Data scripts
Scripts that directly handle row data are called data scripts. All other scripts are non-data scripts. The distinction between a data script and a non-data script is sometimes important. For example, only data scripts can reference the named parameters for column values.
authenticate_parameters connection event
Receives values from the remote database that can be used to authenticate beyond
a user ID and password. The values can also be used to arbitrarily customize each
synchronization.
begin_download table event
Processes statements related to a specific table just before preparing the download
inserts, updates, and deletions.
begin_download_deletes table event
Processes statements related to a specific table just before fetching a
list of rows to be deleted from the specified table in the remote
database.
begin_download_rows table event
Processes statements related to a specific table just before fetching a list of rows
to be inserted or updated in the specified table in the remote database.
begin_publication connection event
Provides useful information about the publication(s) being synchronized. This script
may also be used to manage generation numbers for file-based downloads.
begin_upload connection event
Processes any statements just before the MobiLink server commences
processing the uploaded inserts, updates, and deletes.
begin_upload table event
Processes statements related to a specific table just before the MobiLink server commences
processing the uploaded inserts, updates, and deletes.
begin_upload_deletes table event
Processes statements related to a specific table just before uploading deleted rows
from the specified table in the remote database.
begin_upload_rows table event
Processes statements related to a specific table just before uploading inserts and
updates from the specified table in the remote database.
download_cursor table event
A data script that defines a cursor to select rows to download and insert and update in
the given table in the remote database.
end_connection connection event
Processes any statements just before the MobiLink server closes a connection with the consolidated database server, either in preparation to shut down or when a connection is removed from the connection pool.
end_download table event
Processes statements related to a specific table just after the MobiLink server concludes
preparing the download rows.
end_download_deletes table event
Processes statements related to a specific table just after preparing a list of rows
to be deleted from the specified table in the remote database.
end_download_rows table event
Processes statements related to a specific table just after preparing a list of rows
to be inserted or updated in the specified table in the remote database.
end_upload connection event
Processes any statements just after the MobiLink server concludes processing uploaded
inserts, updates, and deletes.
end_upload table event
Processes statements related to a specific table just after the MobiLink server
concludes processing of uploaded inserts, updates, and deletions.
end_upload_deletes table event
Processes statements related to a specific table just after applying deletes uploaded
from the specified table in the remote database.
end_upload_rows table event
Processes statements related to a specific table just after applying uploaded inserts
and updates from the specified table in the remote database.
nonblocking_download_ack connection event
When you use download acknowledgement, this script provides a place to record the
information that a download has been applied successfully, or to trigger business logic that
depends on the download being confirmed as applied.
upload_delete table event
A data script that provides an event that the MobiLink server uses during processing of the upload to handle rows deleted from the remote database.
upload_fetch table event
A data script that fetches rows from a synchronized table in the consolidated database for row-level conflict detection.
upload_insert table event
A data script that provides an event that the MobiLink server uses during processing of the upload to handle rows inserted into the remote database.
upload_new_row_insert table event
Conflict resolution scripts for statement-based uploads commonly require access to the old and new values of rows uploaded from the remote database. This data script event allows you to handle the new, updated values of rows uploaded from the remote database.
upload_old_row_insert table event
Conflict resolution scripts for statement-based uploads commonly require access to the old and new values of rows uploaded from the remote database. This data script event allows you to handle the old values of rows uploaded from the remote database.
upload_update table event
A data script that provides an event that the MobiLink server uses during processing of the upload to handle rows updated at the remote database.