|
Applies changes comming from the server into local client
database. |
|
Terminate module usage. |
|
Collect local changes. |
|
Collect local primary keys for a set of tables. |
|
Compact local registered changes. |
|
DB Sync synchronization reset procedure. |
FUNCTION data_sync(
return_receipt BOOLEAN
)
RETURNS INTEGER
|
DB Sync synchronization procedure collecting local
changes. |
|
Initialize DB Sync synchronization procedure. |
|
Append a retrieve event for the registered tables to the sync
procedure. |
|
Send the synchronization procedure to the server. |
|
Sets the 'full sync' option for DB Sync
synchronization. |
|
Sets the 'return receipt' option for DB Sync
synchronization. |
|
Make a copy of the database for the current user/app. |
|
Fetch the list of tables assigned to the current app. |
|
Returns the status of the last synchronization
operation. |
|
Returns the result events from the last sync
procedure. |
|
DB Sync client app lib initialization. |
FUNCTION is_row_referenced(
table_name STRING,
jo_data util.JSONObject
)
RETURNS BOOLEAN
|
Checks if a given row is still referenced in other tables by foreign
key. |
|
Get a new local temp auto-incremented identifier. |
|
Registers the dbsync source record for the remote
app. |
|
Registers the dbsync user identification for the remote
app. |
FUNCTION register_local_change(
tabname STRING,
columns DYNAMIC ARRAY OF STRING,
pkeyval BIGINT
)
RETURNS INTEGER
|
Register dbsync change for some fields of a given local
row. |
FUNCTION register_local_change_cpk2(
tabname STRING,
columns DYNAMIC ARRAY OF STRING,
pkeyval_1 BIGINT,
pkeyval_2 BIGINT
)
RETURNS INTEGER
|
Register dbsync change for a given local row with a 2-col integer
pkey. |
FUNCTION register_local_change_cpk3_s(
tabname STRING,
columns DYNAMIC ARRAY OF STRING,
pkeyval_1 STRING,
pkeyval_2 STRING,
pkeyval_3 STRING
)
RETURNS INTEGER
|
Register dbsync change for a given local row with a composite
pkey. |
FUNCTION register_local_change_s(
tabname STRING,
columns DYNAMIC ARRAY OF STRING,
pkeyval STRING
)
RETURNS INTEGER
|
Same as register_local_change() but with string
column. |
|
Loads the dbsync schema for the remote app. |
|
Register dbsync delete for a given local row. |
|
Register dbsync delete for a given local row with a 2-col integer
pkey. |
|
Register dbsync delete for a given local row with a composite
pkey. |
|
Same as register_local_delete() but with string
column. |
|
Register dbsync insert for a given local row. |
|
Register dbsync insert for a given local row with a 2-col integer
pkey. |
|
Register dbsync insert for a given local row with a composite
pkey. |
|
Same as register_local_insert() but with string
column. |
|
Initializes local changes registration. |
|
Register dbsync update for a given local row. |
|
Register dbsync update for a given local row with a 2-col integer
pkey. |
|
Register dbsync update for a given local row with a composite
pkey. |
|
Same as register_local_update() but with string
column. |
|
Send a return receipt for the registered tables. |