Home
last modified time | relevance | path

Searched refs:JsSingleKVStore (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Djs_single_kv_store.cpp30 std::map<std::string, JsSingleKVStore::Exec> JsSingleKVStore::onEventHandlers_ = {
31 { "dataChange", JsSingleKVStore::OnDataChange },
32 { "syncComplete", JsSingleKVStore::OnSyncComplete }
35 std::map<std::string, JsSingleKVStore::Exec> JsSingleKVStore::offEventHandlers_ = {
36 { "dataChange", JsSingleKVStore::OffDataChange },
66 JsSingleKVStore::JsSingleKVStore(const std::string& storeId) in JsSingleKVStore() function in OHOS::DistributedKVStore::JsSingleKVStore
91 bool JsSingleKVStore::IsSchemaStore() const in IsSchemaStore()
101 bool JsSingleKVStore::IsSystemApp() const in IsSystemApp()
106 JsSingleKVStore::~JsSingleKVStore() in ~JsSingleKVStore()
130 napi_value JsSingleKVStore::Constructor(napi_env env) in Constructor()
[all …]
H A Djs_device_kv_store.cpp41 : JsSingleKVStore(storeId) in JsDeviceKVStore()
49 DECLARE_NAPI_FUNCTION("put", JsSingleKVStore::Put), in Constructor()
50 DECLARE_NAPI_FUNCTION("delete", JsSingleKVStore::Delete), in Constructor()
51 DECLARE_NAPI_FUNCTION("putBatch", JsSingleKVStore::PutBatch), in Constructor()
52 DECLARE_NAPI_FUNCTION("deleteBatch", JsSingleKVStore::DeleteBatch), in Constructor()
54 DECLARE_NAPI_FUNCTION("commit", JsSingleKVStore::Commit), in Constructor()
55 DECLARE_NAPI_FUNCTION("rollback", JsSingleKVStore::Rollback), in Constructor()
56 DECLARE_NAPI_FUNCTION("enableSync", JsSingleKVStore::EnableSync), in Constructor()
58 DECLARE_NAPI_FUNCTION("backup", JsSingleKVStore::Backup), in Constructor()
59 DECLARE_NAPI_FUNCTION("restore", JsSingleKVStore::Restore), in Constructor()
[all …]
H A Djs_kv_manager.cpp93 JsSingleKVStore* kvStore = nullptr;
118 JsSingleKVStore::Constructor(env)); in GetCbInfo()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Djs_single_kv_store.cpp29 JsSingleKVStore::JsSingleKVStore(const std::string& storeId) in JsSingleKVStore() function in OHOS::DistributedData::JsSingleKVStore
34 napi_value JsSingleKVStore::Constructor(napi_env env) in Constructor()
47 DECLARE_NAPI_FUNCTION("get", JsSingleKVStore::Get), in Constructor()
48 DECLARE_NAPI_FUNCTION("getEntries", JsSingleKVStore::GetEntries), in Constructor()
49 DECLARE_NAPI_FUNCTION("getResultSet", JsSingleKVStore::GetResultSet), in Constructor()
53 DECLARE_NAPI_FUNCTION("sync", JsSingleKVStore::Sync), in Constructor()
70 napi_value JsSingleKVStore::Get(napi_env env, napi_callback_info info) in Get()
363 napi_value JsSingleKVStore::Sync(napi_env env, napi_callback_info info) in Sync()
458 napi_value JsSingleKVStore::New(napi_env env, napi_callback_info info) in New()
473 JsSingleKVStore* kvStore = new (std::nothrow) JsSingleKVStore(storeId); in New()
[all …]
H A Djs_kv_manager.cpp110 JsSingleKVStore::Constructor(env)); in GetCbInfo()
185 …bool isSingle = JsKVStore::IsInstanceOf(env, argv[2], ctxt->storeId, JsSingleKVStore::Constructor(… in CloseKVStore()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/include/
H A Djs_single_kv_store.h22 class JsSingleKVStore : public JsKVStore {
24 explicit JsSingleKVStore(const std::string& storeId);
25 ~JsSingleKVStore() = default;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/include/
H A Djs_single_kv_store.h34 class JsSingleKVStore {
36 explicit JsSingleKVStore(const std::string& storeId);
37 virtual ~JsSingleKVStore();
H A Djs_device_kv_store.h22 class JsDeviceKVStore : public JsSingleKVStore {