Differential D11418 Diff 38692 native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/SyncedMetadataStore.h
Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/NativeModules/PersistentStorageUtilities/DataStores/SyncedMetadataStore.h
- This file was added.
#pragma once | |||||
#include "../../../DatabaseManagers/entities/SyncedMetadataEntry.h" | |||||
#include "BaseDataStore.h" | |||||
#include "SyncedMetadataStoreOperations.h" | |||||
#include <jsi/jsi.h> | |||||
namespace comm { | |||||
class SyncedMetadataStore : public BaseDataStore< | |||||
SyncedMetadataStoreOperationBase, | |||||
SyncedMetadataEntry> { | |||||
private: | |||||
static OperationType REMOVE_OPERATION; | |||||
static OperationType REMOVE_ALL_OPERATION; | |||||
static OperationType REPLACE_OPERATION; | |||||
public: | |||||
SyncedMetadataStore(std::shared_ptr<facebook::react::CallInvoker> jsInvoker); | |||||
std::vector<std::unique_ptr<SyncedMetadataStoreOperationBase>> | |||||
createOperations(jsi::Runtime &rt, const jsi::Array &operations) | |||||
const override; | |||||
jsi::Array parseDBDataStore( | |||||
jsi::Runtime &rt, | |||||
std::shared_ptr<std::vector<SyncedMetadataEntry>> dataVectorPtr) | |||||
const override; | |||||
}; | |||||
} // namespace comm |