Home
last modified time | relevance | path

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 Ddistributeddb_relational_schema_analysis_test.cpp122 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 Dsplit_device_log_table_manager.cpp24 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 Dcloud_sync_log_table_manager.cpp28 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 Dsimple_tracker_log_table_manager.cpp26 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 Dsqlite_single_ver_relational_storage_executor.cpp138 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 Dsqlite_relational_store.cpp994 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 Dtable_info.cpp348 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 Drelational_schema_object.cpp99 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 Dtable_info.h85 const std::map<int, FieldName> &GetPrimaryKey() const;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/
H A Dschema_mgr.cpp54 std::map<int, FieldName> primaryKeys = tableInfo.GetPrimaryKey(); in ChkSchema()
H A Dcloud_storage_utils.cpp776 const std::map<int, FieldName> &primaryKeys = table.GetPrimaryKey(); in ConstraintsCheckForCloud()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_utils.cpp903 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()