Implements processing of aux user store ops by shared worker
Depends on D11510
Differential D11511
[sqlite] implement processing aux user store ops on worker Authored by will on Apr 1 2024, 6:33 AM.
Details Implements processing of aux user store ops by shared worker Depends on D11510 Ran the following code and confirmed web database had expected results: await sharedWorker.schedule({
type: workerRequestMessageTypes.PROCESS_STORE_OPERATIONS,
storeOperations: {
auxUserStoreOperations: [
{
type: 'replace_aux_user_info',
payload: {
id: 'worker_test_A_id',
auxUserInfo: 'worker_test_A_data',
},
},
{
type: 'replace_aux_user_info',
payload: {
id: 'worker_test_B_id',
auxUserInfo: 'worker_test_B_update',
},
},
{
type: 'replace_aux_user_info',
payload: {
id: 'worker_test_A_id',
auxUserInfo: 'worker_test_A_update',
},
},
{
type: 'remove_aux_user_infos',
payload: {
ids: ['worker_test_B_id'],
},
},
],
},
});
const response = await sharedWorker.schedule({
type: workerRequestMessageTypes.GET_DB_FILE,
});
Diff Detail
|