Introduces code allowing native to use sqlite synced metadata store ops
Depends on D11417
Paths
| Differential D11418 Authored by will on Mar 27 2024, 3:26 PM.
Tags None Referenced Files
Details Summary Introduces code allowing native to use sqlite synced metadata store ops Depends on D11417 Test Plan Ran the following code: async function run_test() { console.log('running run_test()'); await commCoreModule.processSyncedMetadataStoreOperations([ { type: 'remove_all_synced_metadata', }, ]); let data = await commCoreModule.getClientDBStore(); console.log(data.syncedMetadata); await commCoreModule.processSyncedMetadataStoreOperations([ { type: 'replace_synced_metadata_entry', payload: { name: 'test_B_name', data: 'test_B_data', }, }, { type: 'replace_synced_metadata_entry', payload: { name: 'test_A_name', data: 'test_A_data', }, }, { type: 'replace_synced_metadata_entry', payload: { name: 'test_A_name', data: 'test_A_update', }, }, { type: 'remove_synced_metadata', payload: { names: ['test_B_name'] }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.syncedMetadata); } And received the correct response of [{"data": "test_A_update", "name": "test_A_name"}]
Diff Detail
Event TimelineHerald added subscribers: tomek, ashoat. · View Herald TranscriptMar 27 2024, 3:26 PM2024-03-27 15:26:25 (UTC-7) will edited the summary of this revision. (Show Details)Mar 27 2024, 3:27 PM2024-03-27 15:27:16 (UTC-7) Harbormaster completed remote builds in B27736: Diff 38399.Mar 27 2024, 3:41 PM2024-03-27 15:41:48 (UTC-7)
This revision is now accepted and ready to land.Mar 28 2024, 4:51 AM2024-03-28 04:51:33 (UTC-7) Harbormaster completed remote builds in B27781: Diff 38471.Mar 28 2024, 10:19 AM2024-03-28 10:19:18 (UTC-7) Closed by commit rCOMM585c20c0a367: [sqlite] implement C++ synced metadata store ops (authored by will). · Explain WhyApr 2 2024, 11:21 PM2024-04-02 23:21:56 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 38692 native/cpp/CommonCpp/NativeModules/CMakeLists.txt
native/cpp/CommonCpp/NativeModules/CommCoreModule.h
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/SyncedMetadataStore.h
|