Searched refs:GetPrimaryKey (Results 1 – 12 of 12) sorted by relevance
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_relational_schema_analysis_test.cpp | 122 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 135 EXPECT_EQ(table.GetPrimaryKey().size(), 2u); 148 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 161 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 164 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 167 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 170 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 174 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 178 EXPECT_EQ(table.GetPrimaryKey().size(), 1u); 192 EXPECT_EQ(table.GetPrimaryKey().size(), 1u);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | split_device_log_table_manager.cpp | 24 if (table.GetPrimaryKey().size() == 1) { in CalcPrimaryKeyHash() 25 sql = "calc_hash(" + references + "'" + table.GetPrimaryKey().at(0) + "', 0)"; in CalcPrimaryKeyHash() 28 for (const auto &it : table.GetPrimaryKey()) { in CalcPrimaryKeyHash() 63 if (table.GetPrimaryKey().size() == 1 && table.GetPrimaryKey().at(0) == "rowid") { in GetUpdateTrigger()
|
H A D | cloud_sync_log_table_manager.cpp | 28 if (table.GetPrimaryKey().size() == 1) { in CalcPrimaryKeyHash() 29 std::string pkName = table.GetPrimaryKey().at(0); in CalcPrimaryKeyHash() 45 for (const auto &it : table.GetPrimaryKey()) { in CalcPrimaryKeyHash() 83 auto primaryKey = table.GetPrimaryKey(); in GetPrimaryKeySql()
|
H A D | simple_tracker_log_table_manager.cpp | 26 if (table.GetPrimaryKey().size() == 1) { in CalcPrimaryKeyHash() 27 sql = "calc_hash(" + references + "'" + table.GetPrimaryKey().at(0) + "', 0)"; in CalcPrimaryKeyHash() 30 for (const auto &it : table.GetPrimaryKey()) { in CalcPrimaryKeyHash()
|
H A D | sqlite_single_ver_relational_storage_executor.cpp | 138 if (table.GetPrimaryKey().size() > 1) { in CheckTableConstraint() 888 …(mode_ == DistributedTableMode::SPLIT_BY_DEVICE && inserter.GetLocalTable().GetPrimaryKey().size()… in SaveSyncDataItem() 889 inserter.GetLocalTable().GetPrimaryKey().at(0) == "rowid") || in SaveSyncDataItem()
|
H A D | sqlite_relational_store.cpp | 994 auto primaryKeyMap = tableInfo.GetPrimaryKey(); in CheckFields() 1223 const std::map<int, FieldName> &primaryKeyMap = tableInfo.GetPrimaryKey(); in CheckObjectValid()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/ |
H A D | table_info.cpp | 348 const std::map<int, FieldName> &TableInfo::GetPrimaryKey() const in GetPrimaryKey() function in DistributedDB::TableInfo 445 int primaryKeyResult = CompareWithPrimaryKey(primaryKey_, inTableInfo.GetPrimaryKey()); in CompareWithTable() 652 if (!liteTableInfo.GetPrimaryKey().empty() && (primaryKey_.at(0) != ROW_ID) && in CompareWithLiteSchemaTable() 653 !CompareWithPrimaryKey(primaryKey_, liteTableInfo.GetPrimaryKey())) { // LCOV_EXCL_BR_LINE in CompareWithLiteSchemaTable() 657 …if (!liteTableInfo.GetPrimaryKey().empty() && (primaryKey_.at(0) == ROW_ID)) { // LCOV_EXCL_BR_LINE in CompareWithLiteSchemaTable() 661 …if ((liteTableInfo.GetPrimaryKey().empty() && (primaryKey_.at(0) != ROW_ID) && !autoInc_)) { // LC… in CompareWithLiteSchemaTable()
|
H A D | relational_schema_object.cpp | 99 if (table.GetPrimaryKey().size() > 1 && table.GetTableSyncType() != CLOUD_COOPERATION) { in AddRelationalTable()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
H A D | table_info.h | 85 const std::map<int, FieldName> &GetPrimaryKey() const;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/ |
H A D | schema_mgr.cpp | 54 std::map<int, FieldName> primaryKeys = tableInfo.GetPrimaryKey(); in ChkSchema()
|
H A D | cloud_storage_utils.cpp | 776 const std::map<int, FieldName> &primaryKeys = table.GetPrimaryKey(); in ConstraintsCheckForCloud()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils.cpp | 903 if (table.GetPrimaryKey().empty()) { in AnalysisSchemaFieldDefine() 1544 if (!(baseTbl.GetPrimaryKey().size() == 1 && baseTbl.GetPrimaryKey().at(0) == "rowid")) { in CreateSameStuTable() 1546 for (const auto &it : baseTbl.GetPrimaryKey()) { in CreateSameStuTable()
|