HomePhabricator
Diffusion Comm a5c95cab2250

[SQLite] implement C++ user store ops

Description

[SQLite] implement C++ user store ops

Summary:
Code for native ops

Depends on D9909

Test Plan:
Code for testing:

await commCoreModule.processUserStoreOperations([
  {
    type: 'replace_user',
    payload: {
      id: '1',
      userInfo: 'fdfd',
    },
  },
  {
    type: 'replace_user',
    payload: {
      id: '2',
      userInfo: 'fdfd',
    },
  },
]);

await commCoreModule.processUserStoreOperations([
  {
    type: 'replace_user',
    payload: {
      id: '2',
      userInfo: 'fdfd',
    },
  },
]);

await commCoreModule.processUserStoreOperations([
  {
    type: 'remove_users',
    payload: {
      ids: ['1'],
    },
  },
]);

await commCoreModule.processUserStoreOperations([
  {
    type: 'remove_all_users',
  },
]);

Reviewers: tomek

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D9910

Details

Provenance
kamilAuthored on Nov 14 2023, 5:19 AM
Reviewer
tomek
Differential Revision
D9910: [SQLite] implement C++ user store ops
Parents
rCOMMa6501a810620: [SQLite] add functions to convert user data and tests to user store methods
Branches
Unknown
Tags
Unknown