HomePhabricator
Diffusion Comm 09c232731144

[SQLite] implement C++ keyserver store ops

Description

[SQLite] implement C++ keyserver store ops

Summary:
Code for native ops

Depends on D10775

Test Plan:
Call this code:

await commCoreModule.processKeyserverStoreOperations([
    {
      type: 'replace_keyserver',
      payload: {
        id: '1',
        keyserverInfo: 'fdfd',
      },
    },
    {
      type: 'replace_keyserver',
      payload: {
        id: '2',
        keyserverInfo: 'fdfd',
      },
    },
  ]);

  await commCoreModule.processKeyserverStoreOperations([
    {
      type: 'replace_keyserver',
      payload: {
        id: '2',
        keyserverInfo: 'fdfd45454545',
      },
    },
  ]);

  await commCoreModule.processKeyserverStoreOperations([
    {
      type: 'remove_keyserver',
      payload: {
        id: '1',
      },
    },
  ]);

  await commCoreModule.processKeyserverStoreOperations([
    {
      type: 'remove_all_keyservers',
    },
  ]);

Reviewers: inka, will

Reviewed By: will

Subscribers: will, ashoat, tomek

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

Details

Provenance
kamilAuthored on Jan 20 2024, 4:30 PM
Reviewer
will
Differential Revision
D10776: [SQLite] implement C++ keyserver store ops
Parents
rCOMMc2979e5a2646: [SQLite] add methods to operate on `keyservers` table
Branches
Unknown
Tags
Unknown