dbsync_app.apply_data_changes()
Applies changes comming from the server into local client database.
Syntax
FUNCTION apply_data_changes(
ret_evts dbsync_core.t_dbsync_event_array
)
RETURNS INTEGER
- ret_evts is the list of returned events from last sync process.
Returns:
- The status.
Usage
This function is to be called after sending local client changes to the server with data_sync_send()
.
The function uses a local transaction with BEGIN WORK / COMMIT WORK. After applying changes locally, if the sync request was done with return receipt option, the client code must send a return receipt to indicate that local changes succeeded or failed.
Upon success, the changes registered in the local sync log are automatically deleted.
The current schema must have been loaded with register_local_dbschema()
.