Code for native ops
Depends on D9910
Paths
| Differential D9911 Authored by kamil on Nov 16 2023, 6:35 AM.
Details
Summary Code for native ops Depends on D9910 Test Plan Code for testing: const { users } = await commCoreModule.getClientDBStore(); console.log(users); await commCoreModule.processUserStoreOperations([ { type: 'replace_user', payload: { id: '1', userInfo: 'test', }, }, { type: 'replace_user', payload: { id: '2', userInfo: 'test', }, }, ]); const { users: users2 } = await commCoreModule.getClientDBStore(); console.log(users2); await commCoreModule.processUserStoreOperations([ { type: 'replace_user', payload: { id: '2', userInfo: 'test', }, }, ]); const { users: users3 } = await commCoreModule.getClientDBStore(); console.log(users3); await commCoreModule.processUserStoreOperations([ { type: 'remove_users', payload: { ids: ['1'], }, }, ]); const { users: users4 } = await commCoreModule.getClientDBStore(); console.log(users4); await commCoreModule.processUserStoreOperations([ { type: 'remove_all_users', }, ]); const { users: users5 } = await commCoreModule.getClientDBStore(); console.log(users5);
Diff Detail
Event Timelinekamil held this revision as a draft. Herald added a subscriber: ashoat. · View Herald TranscriptNov 16 2023, 6:35 AM2023-11-16 06:35:27 (UTC-8) kamil added a child revision: D9912: [native] migrate users to SQLite.Nov 16 2023, 6:37 AM2023-11-16 06:37:55 (UTC-8) Harbormaster failed remote builds in B24202: Diff 33327!Nov 16 2023, 7:17 AM2023-11-16 07:17:13 (UTC-8) Harbormaster failed remote builds in B24210: Diff 33343!Nov 16 2023, 9:02 AM2023-11-16 09:02:39 (UTC-8) This revision is now accepted and ready to land.Nov 17 2023, 7:48 AM2023-11-17 07:48:20 (UTC-8) Harbormaster completed remote builds in B24210: Diff 33343.Nov 20 2023, 3:02 AM2023-11-20 03:02:00 (UTC-8) Closed by commit rCOMM17ac5aa279aa: [SQLite] implement C++ code to get users (authored by kamil). · Explain WhyNov 20 2023, 5:48 AM2023-11-20 05:48:24 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 33422 lib/types/store-ops-types.js
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/UserStore.cpp
web/database/worker/process-operations.js
|