[SQLite] implement C++ code to get keyservers
Summary:
Code for native ops
Depends on D10776
Test Plan:
Call this code:
let data = await commCoreModule.getClientDBStore(); console.log(data.keyservers); await commCoreModule.processKeyserverStoreOperations([ { type: 'replace_keyserver', payload: { id: '1', keyserverInfo: 'fdfd', }, }, { type: 'replace_keyserver', payload: { id: '2', keyserverInfo: 'fdfd', }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.keyservers); await commCoreModule.processKeyserverStoreOperations([ { type: 'replace_keyserver', payload: { id: '2', keyserverInfo: 'fdfd45454545', }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.keyservers); await commCoreModule.processKeyserverStoreOperations([ { type: 'remove_keyserver', payload: { id: '1', }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.keyservers); await commCoreModule.processKeyserverStoreOperations([ { type: 'remove_all_keyservers', }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.keyservers);
Reviewers: inka, marcin
Reviewed By: marcin
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D10780