Home
last modified time | relevance | path

Searched refs:hashDev (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_natural_store_extend.cpp461 int SQLiteSingleVerNaturalStore::RemoveDeviceDataInner(const std::string &hashDev, bool isNeedNotif… in RemoveDeviceDataInner() argument
477 if (hashDev.empty()) { in RemoveDeviceDataInner()
484 removeDevices.insert(hashDev); in RemoveDeviceDataInner()
499 errCode = RemoveDeviceDataInCacheMode(hashDev, isNeedNotify); in RemoveDeviceDataInner()
501 errCode = RemoveDeviceDataNormally(hashDev, isNeedNotify); in RemoveDeviceDataInner()
510 int SQLiteSingleVerNaturalStore::RemoveDeviceDataInner(const std::string &hashDev, ClearMode mode) in RemoveDeviceDataInner() argument
524 errCode = handle->RemoveDeviceData(hashDev, mode); in RemoveDeviceDataInner()
538 int SQLiteSingleVerNaturalStore::RemoveDeviceDataInner(const std::string &hashDev, const std::strin… in RemoveDeviceDataInner() argument
553 errCode = handle->RemoveDeviceData(hashDev, user, mode); in RemoveDeviceDataInner()
H A Dsqlite_single_ver_natural_store.h277 int RemoveDeviceDataInCacheMode(const std::string &hashDev, bool isNeedNotify) const;
279 int RemoveDeviceDataNormally(const std::string &hashDev, bool isNeedNotify);
306 int RemoveDeviceDataInner(const std::string &hashDev, bool isNeedNotify);
308 int RemoveDeviceDataInner(const std::string &hashDev, ClearMode mode);
310 int RemoveDeviceDataInner(const std::string &hashDev, const std::string &user, ClearMode mode);
H A Dsqlite_single_ver_storage_executor_extend.cpp290 auto hashDev = DBCommon::TransferHashString(device); in GetEntries() local
292 DBCommon::StringToVector(hashDev, blobDev); in GetEntries()
H A Dsqlite_single_ver_storage_executor.h56 int GetAllSyncedEntries(const std::string &hashDev, std::vector<Entry> &entries) const;
73 …int RemoveDeviceDataInCacheMode(const std::string &hashDev, bool isNeedNotify, uint64_t recordVers…
H A Dsqlite_single_ver_storage_executor_cache.cpp80 int SQLiteSingleVerStorageExecutor::RemoveDeviceDataInCacheMode(const std::string &hashDev, in RemoveDeviceDataInCacheMode() argument
84 std::vector<uint8_t> devVect(hashDev.begin(), hashDev.end()); in RemoveDeviceDataInCacheMode()
H A Dsqlite_single_ver_natural_store.cpp979 int SQLiteSingleVerNaturalStore::RemoveDeviceDataInCacheMode(const std::string &hashDev, bool isNee… in RemoveDeviceDataInCacheMode() argument
989 errCode = handle->RemoveDeviceDataInCacheMode(hashDev, isNeedNotify, recordVersion); in RemoveDeviceDataInCacheMode()
997 int SQLiteSingleVerNaturalStore::RemoveDeviceDataNormally(const std::string &hashDev, bool isNeedNo… in RemoveDeviceDataNormally() argument
1008 handle->GetAllSyncedEntries(hashDev, entries); in RemoveDeviceDataNormally()
1012 errCode = handle->RemoveDeviceData(hashDev); in RemoveDeviceDataNormally()
H A Dsqlite_cloud_kv_executor_utils.cpp1147 std::string hashDev; in GetLocalCloudVersionInner() local
1148 errCode = RuntimeContext::GetInstance()->GetLocalIdentity(hashDev); in GetLocalCloudVersionInner()
1152 std::string tempDev = DBCommon::TransferHashString(hashDev); in GetLocalCloudVersionInner()
1153 hashDev = DBCommon::TransferStringToHex(tempDev); in GetLocalCloudVersionInner()
1154 std::string key = CloudDbConstant::CLOUD_VERSION_RECORD_PREFIX_KEY + hashDev; in GetLocalCloudVersionInner()
H A Dsqlite_single_ver_storage_executor.cpp1402 int SQLiteSingleVerStorageExecutor::GetAllSyncedEntries(const std::string &hashDev, in GetAllSyncedEntries() argument
1407 if (hashDev.empty()) { in GetAllSyncedEntries()
1425 std::vector<uint8_t> devVect(hashDev.begin(), hashDev.end()); in GetAllSyncedEntries()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_storage_executor.h74 int GetAllSyncedEntries(const std::string &hashDev, std::vector<Entry> &entries) const;
91 …int RemoveDeviceDataInCacheMode(const std::string &hashDev, bool isNeedNotify, uint64_t recordVers…
H A Drd_single_ver_storage_executor.cpp454 int RdSingleVerStorageExecutor::GetAllSyncedEntries(const std::string &hashDev, std::vector<Entry> … in GetAllSyncedEntries() argument
490 int RdSingleVerStorageExecutor::RemoveDeviceDataInCacheMode(const std::string &hashDev, bool isNeed… in RemoveDeviceDataInCacheMode() argument
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_store.cpp833 …SQLiteRelationalStore::GetDevTableName(const std::string &device, const std::string &hashDev) const in GetDevTableName()
840 devTableName = hashDev; in GetDevTableName()
866 std::string hashDev; in RemoveDeviceDataInner() local
871 hashDev = mappingDev; in RemoveDeviceDataInner()
875 hashDev = DBCommon::TransferHashString(mappingDev); in RemoveDeviceDataInner()
876 hashHexDev = DBCommon::TransferStringToHex(hashDev); in RemoveDeviceDataInner()
880 int errCode = syncAbleEngine_->EraseDeviceWaterMark(hashDev, false, tableName); in RemoveDeviceDataInner()
H A Dsqlite_relational_store.h137 std::string GetDevTableName(const std::string &device, const std::string &hashDev) const;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_sqlite_single_ver_natural_executor_test.cpp463 std::string hashDev = DBCommon::TransferHashString("device1"); variable
464 EXPECT_EQ(executor->RemoveDeviceDataInCacheMode(hashDev, true, 0u), E_OK);
890 std::string hashDev = DBCommon::TransferHashString("device1"); variable
891 EXPECT_EQ(g_handle->RemoveDeviceDataInCacheMode(hashDev, true, 0u), SQL_STATE_ERR);
H A Ddistributeddb_storage_rd_single_ver_natural_executor_test.cpp477 std::string hashDev = DBCommon::TransferHashString("device1"); variable
478 EXPECT_EQ(g_handle->RemoveDeviceDataInCacheMode(hashDev, true, 0u), -E_NOT_SUPPORT);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dmeta_data.cpp688 for (auto &[hashDev, metaDataValue] : metadataMap_) { in ClearAllMetaDataValue()
702 DBCommon::StringToVector(hashDev, key); in ClearAllMetaDataValue()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_syncer_extend.cpp530 std::string hashDev; in PrepareAndDownload() local
531 int errCode = RuntimeContext::GetInstance()->GetLocalIdentity(hashDev); in PrepareAndDownload()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_relational_test.cpp1692 …const std::string hashDev = DBCommon::TransferStringToHex(DBCommon::TransferHashString(deviceName)… variable
1695 EXPECT_EQ(devTableName, DBConstant::RELATIONAL_PREFIX + tableName + "_" + hashDev);