Lines Matching refs:sync
6 You can sync the application data in a local RDB store on a device to other devices that form a Sup…
11 OpenHamony supports sync of the relational data of an application across multiple devices.
27 After writing data to an RDB store, the service sends a sync request to the **DatamgrService**.
50 Most of the APIs for cross-device data sync of RDB stores are executed asynchronously, using a call…
55 | sync(mode: SyncMode, predicates: RdbPredicates, callback: AsyncCallback<Array<[string, numb…
66 …ce Sync](access-control-by-device-and-data-level.md#access-control-mechanism-in-cross-device-sync).
79 3. Create an RDB store and set a table for distributed sync.
95 // Set the table for distributed sync.
104 4. Synchronize data across devices. After **sync()** is called to trigger a sync, data is synced fr…
109 // Call sync() to synchronize data.
112 …(store as relationalStore.RdbStore).sync(relationalStore.SyncMode.SYNC_MODE_PUSH, predicates, (err…
113 // Check whether data sync is successful.
115 console.error(`Failed to sync data. Code:${err.code},message:${err.message}`);
126 5. Subscribe to changes in the distributed data. The data sync triggers the **observer** callback r…
156 6. Query data across devices. If data sync is not complete or triggered, an application can call **…