dbsync_srvapp.central_set_sync_timestamp()

Registers the point in time of last central data refresh.

Syntax

Usage

This function sets the point in time of the last fetch of table row(s) into the application memory.

Call this function after fetching rows from the central database SQL tables, and before calling central_change_init(), to set the timestamp of the last data refresh in the current DB sync server-side app.

This timestamp will be used to check for other user changes when calling the register_central_*() functions for a given row: If more recent changes have been done by another user, the registration function will return an error. The DB Sync server-side app code should then fetch fresh data, re-do the modifications, and re-initiate a central change process taking other user changes into account.

If the central_set_sync_timestamp() function is not used, the changes registration functions will ignore changes done by other users.