Code for native ops
Depends on D9910
Differential D9911
[SQLite] implement C++ code to get users kamil on Nov 16 2023, 6:35 AM. Authored by Tags None Referenced Files
Subscribers
Details
Code for native ops Depends on D9910 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
|