Home
last modified time | relevance | path

Searched refs:CalcPrimaryKeyHash (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsplit_device_log_table_manager.cpp19 std::string SplitDeviceLogTableManager::CalcPrimaryKeyHash(const std::string &references, const Tab… in CalcPrimaryKeyHash() function in DistributedDB::SplitDeviceLogTableManager
50CalcPrimaryKeyHash("NEW.", table, identity) + " AND flag&0x02=0x02) THEN 0x22 ELSE 0x02 END,"; in GetInsertTrigger()
51 insertTrigger += CalcPrimaryKeyHash("NEW.", table, identity) + ");\n"; in GetInsertTrigger()
67 updateTrigger += " WHERE hash_key=" + CalcPrimaryKeyHash("OLD.", table, identity) + in GetUpdateTrigger()
75 …updateTrigger += " WHERE hash_key=" + CalcPrimaryKeyHash("OLD.", table, identity) + " AND flag&0x0… in GetUpdateTrigger()
78 "get_last_time(), CASE WHEN (" + CalcPrimaryKeyHash("NEW.", table, identity) + " != " + in GetUpdateTrigger()
79 CalcPrimaryKeyHash("NEW.", table, identity) + ") THEN 0x02 ELSE 0x22 END, " + in GetUpdateTrigger()
80 CalcPrimaryKeyHash("NEW.", table, identity) + ", '', '', '', '', '', 0);\n"; in GetUpdateTrigger()
94 deleteTrigger += " WHERE hash_key=" + CalcPrimaryKeyHash("OLD.", table, identity) + in GetDeleteTrigger()
H A Dcollaboration_log_table_manager.cpp25 std::string CollaborationLogTableManager::CalcPrimaryKeyHash(const std::string &references, const T… in CalcPrimaryKeyHash() function in DistributedDB::CollaborationLogTableManager
62CalcPrimaryKeyHash("NEW.", table, identity) + " AND flag&0x02=0x02) THEN 0x22 ELSE 0x02 END,"; in GetInsertTrigger()
63 insertTrigger += CalcPrimaryKeyHash("NEW.", table, identity) + ");\n"; in GetInsertTrigger()
91 "get_last_time(), CASE WHEN (" + CalcPrimaryKeyHash("NEW.", table, identity) + " != " + in GetUpdateTrigger()
92 CalcPrimaryKeyHash("NEW.", table, identity) + ") THEN 0x02 ELSE 0x22 END, " + in GetUpdateTrigger()
94 CalcPrimaryKeyHash("NEW.", table, identity) + ", '', '', '', '', '', 0);\n"; in GetUpdateTrigger()
H A Dcloud_sync_log_table_manager.cpp22 std::string CloudSyncLogTableManager::CalcPrimaryKeyHash(const std::string &references, const Table… in CalcPrimaryKeyHash() function in DistributedDB::CloudSyncLogTableManager
107 …insertTrigger += CalcPrimaryKeyHash("NEW.", table, identity) + ", CASE WHEN (SELECT count(*)<>0 FR… in GetInsertTrigger()
108 … insertTrigger += logTblName + " WHERE hash_key = " + CalcPrimaryKeyHash("NEW.", table, identity); in GetInsertTrigger()
110 insertTrigger += CalcPrimaryKeyHash("NEW.", table, identity) + ") ELSE '' END, "; in GetInsertTrigger()
114 insertTrigger += " WHERE hash_key = " + CalcPrimaryKeyHash("NEW.", table, identity); in GetInsertTrigger()
H A Dsimple_tracker_log_table_manager.cpp21 std::string SimpleTrackerLogTableManager::CalcPrimaryKeyHash(const std::string &references, const T… in CalcPrimaryKeyHash() function in DistributedDB::SimpleTrackerLogTableManager
76 insertTrigger += CalcPrimaryKeyHash("NEW.", table, identity) + ", '', "; in GetInsertTrigger()
H A Dsplit_device_log_table_manager.h27 std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table,
H A Dcloud_sync_log_table_manager.h28 std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table,
H A Dsimple_tracker_log_table_manager.h28 std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table,
H A Dcollaboration_log_table_manager.h26 std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table,
H A Dsqlite_single_ver_relational_storage_executor.cpp254 std::string calPrimaryKeyHash = tableManager->CalcPrimaryKeyHash("a.", table, identity); in CreateDistributedTable()
H A Dsqlite_single_ver_relational_storage_extend_executor.cpp354 std::string calPrimaryKeyHash = tableManager->CalcPrimaryKeyHash("a.", table, ""); in CreateTrackerTable()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_log_test.cpp82 string value = manager.CalcPrimaryKeyHash(key1, tableInfo, key4);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_log_table_manager.h28 virtual std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table,
H A Dsqlite_utils.h187 static std::string CalcPrimaryKeyHash(const std::string &references, const TableInfo &table);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/relational/
H A Drelational_store_manager.h34 …DB_API static std::vector<uint8_t> CalcPrimaryKeyHash(const std::map<std::string, Type> &primaryKe…
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoremanager_fuzzer/
H A Drelationalstoremanager_fuzzer.cpp143 g_mgr.CalcPrimaryKeyHash(primaryKey, collateTypeMap); in CombineTest()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/relational/
H A Drelational_store_manager.cpp182 DB_API std::vector<uint8_t> RelationalStoreManager::CalcPrimaryKeyHash(const std::map<std::string, … in CalcPrimaryKeyHash() function in DistributedDB::RelationalStoreManager
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp1254 … std::vector<uint8_t> result = RelationalStoreManager::CalcPrimaryKeyHash(primaryKey, collateType);
1310 … std::vector<uint8_t> result = RelationalStoreManager::CalcPrimaryKeyHash(primaryKey, collateType);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_store_impl.cpp165 auto hashKey = DistributedDB::RelationalStoreManager::CalcPrimaryKeyHash(tmp); in GetModifyTime()