Home
last modified time | relevance | path

Searched refs:tableNames (Results 1 - 25 of 30) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_reference_sync_test.cpp58 DataBaseSchema GetSchema(const std::vector<std::string> &tableNames);
165 DataBaseSchema DistributedDBCloudReferenceSyncTest::GetSchema(const std::vector<std::string> &tableNames) in GetSchema() argument
168 for (const auto &table : tableNames) { in GetSchema()
437 std::vector<std::string> tableNames = { parentTableName_, childTableName_ }; in HWTEST_F() local
438 Query query = Query::Select().FromTable(tableNames); in HWTEST_F()
463 std::vector<std::string> tableNames = { sharedParentTableName_, sharedChildTableName_ }; in HWTEST_F() local
464 Query query = Query::Select().FromTable(tableNames); in HWTEST_F()
489 std::vector<std::string> tableNames = { childTableName_, parentTableName_ }; in HWTEST_F() local
490 Query query = Query::Select().FromTable(tableNames); in HWTEST_F()
493 tableNames in HWTEST_F()
520 std::vector<std::string> tableNames = { sharedParentTableName_, sharedChildTableName_ }; HWTEST_F() local
567 std::vector<std::string> tableNames = { sharedParentTableName_, sharedChildTableName_ }; HWTEST_F() local
608 std::vector<std::string> tableNames = { sharedParentTableName_, sharedChildTableName_ }; HWTEST_F() local
637 std::vector<std::string> tableNames = { sharedParentTableName_, sharedChildTableName_ }; HWTEST_F() local
676 std::vector<std::string> tableNames = { parentTableName_, childTableName_ }; HWTEST_F() local
749 std::vector<std::string> tableNames = { "table_a", "table_b", "table_d" }; HWTEST_F() local
805 std::vector<std::string> tableNames = { "table_a", "table_e" }; HWTEST_F() local
880 std::vector<std::string> tableNames = { "table_a", "table_b", "table_c" }; HWTEST_F() local
936 std::vector<std::string> tableNames = { "table_b", "table_d", "table_e" }; HWTEST_F() local
988 std::vector<std::string> tableNames = { "table_e" }; HWTEST_F() local
1014 std::vector<std::string> tableNames = { "table_a" }; HWTEST_F() local
[all...]
H A Ddistributeddb_cloud_task_merge_test.cpp219 void DistributedDBCloudTaskMergeTest::CheckCloudTableCount(const std::vector<std::string> &tableNames, in CheckCloudTableCount() argument
222 for (const auto &tableName : tableNames) { in CheckCloudTableCount()
H A Ddistributeddb_cloud_check_sync_test.cpp835 std::vector<std::string> tableNames = {tableName_, tableWithoutPrimaryName_}; in HWTEST_F() local
836 Query normalQuery = Query::Select().FromTable({tableNames}); in HWTEST_F()
937 std::vector<std::string> tableNames = {tableName_}; in HWTEST_F() local
938 Query normalQuery = Query::Select().FromTable({tableNames}); in HWTEST_F()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/
H A Dschema_meta.cpp40 std::vector<std::string> tableNames; in GetTableNames() local
41 tableNames.reserve(tables.size()); in GetTableNames()
43 tableNames.push_back(table.name); in GetTableNames()
45 tableNames.push_back(table.sharedTableName); in GetTableNames()
48 return tableNames; in GetTableNames()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dparam_check_utils.cpp271 std::set<std::string> tableNames; in CheckSharedTableName() local
283 tableNames.find(tableSchema.sharedTableName) != tableNames.end() || in CheckSharedTableName()
284 tableNames.find(tableSchema.name) != tableNames.end()) { in CheckSharedTableName()
291 tableNames.insert(tableSchema.name); in CheckSharedTableName()
H A Dquery.cpp34 Query &Query::FromTable(const std::vector<std::string> &tableNames) in FromTable() argument
36 queryExpression_.SetTables(tableNames); in FromTable()
H A Dquery_expression.cpp364 void QueryExpression::SetTables(const std::vector<std::string> &tableNames) in SetTables() argument
369 for (const auto &table: tableNames) { in SetTables()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/
H A Ddata_share_profile_config.cpp59 SetValue(node[GET_NAME(tableNames)], tableNames); in Marshal()
66 GetValue(node, GET_NAME(tableNames), tableNames); in Unmarshal()
H A Ddata_share_profile_config.h41 std::vector<std::string> tableNames; member
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_single_relational_storage_engine.h61 std::pair<std::vector<std::string>, int> CalTableRef(const std::vector<std::string> &tableNames,
87 int CleanTrackerDeviceTable(const std::vector<std::string> &tableNames, RelationalSchemaObject &trackerSchemaObj,
H A Dsqlite_single_relational_storage_engine.cpp957 const std::vector<std::string> &tableNames, const std::map<std::string, std::string> &sharedTableOriginNames) in CalTableRef()
959 std::pair<std::vector<std::string>, int> res = { tableNames, E_OK }; in CalTableRef()
972 for (size_t i = 0; i < tableNames.size(); ++i) { in CalTableRef()
973 for (size_t j = i + 1; j < tableNames.size(); ++j) { in CalTableRef()
977 if (reachableWithShared[tableNames[i]][tableNames[j]]) { in CalTableRef()
985 auto actualTable = DBCommon::GenerateNodesByNodeWeight(tableNames, reachableWithShared, tableWeight); in CalTableRef()
990 int SQLiteSingleRelationalStorageEngine::CleanTrackerDeviceTable(const std::vector<std::string> &tableNames, in CleanTrackerDeviceTable() argument
994 int errCode = handle->CheckAndCleanDistributedTable(tableNames, missingTrackerTables); in CleanTrackerDeviceTable()
956 CalTableRef( const std::vector<std::string> &tableNames, const std::map<std::string, std::string> &sharedTableOriginNames) CalTableRef() argument
H A Dsqlite_relational_store.cpp925 std::vector<std::string> tableNames; in GetAllDistributedTableName() local
930 tableNames.push_back(table.second.GetTableName()); in GetAllDistributedTableName()
932 return tableNames; in GetAllDistributedTableName()
1003 std::set<std::string> tableNames; in PrepareSharedTable() local
1007 tableNames.insert(table.name); in PrepareSharedTable()
1027 if (tableNames.find(oldOriginTableName) == tableNames.end()) { in PrepareSharedTable()
1156 const auto tableNames = syncObject.GetRelationTableNames(); in CheckQueryValid() local
1157 for (const auto &tableName : tableNames) { in CheckQueryValid()
1207 int SQLiteRelationalStore::CheckTableName(const std::vector<std::string> &tableNames) in CheckTableName() argument
[all...]
H A Dsqlite_relational_store.h153 int CheckTableName(const std::vector<std::string> &tableNames);
H A Dsqlite_single_ver_relational_storage_executor.h95 int CheckAndCleanDistributedTable(const std::vector<std::string> &tableNames,
160 int DeleteTable(const std::vector<std::string> &tableNames);
162 int AlterTableName(const std::map<std::string, std::string> &tableNames);
H A Dsqlite_single_ver_relational_storage_executor.cpp1337 int SQLiteSingleVerRelationalStorageExecutor::CheckAndCleanDistributedTable(const std::vector<std::string> &tableNames, in CheckAndCleanDistributedTable() argument
1340 if (tableNames.empty()) { in CheckAndCleanDistributedTable()
1351 for (const auto &tableName : tableNames) { in CheckAndCleanDistributedTable()
1461 int SQLiteSingleVerRelationalStorageExecutor::GetMaxTimestamp(const std::vector<std::string> &tableNames, in GetMaxTimestamp() argument
1465 for (const auto &tableName : tableNames) { in GetMaxTimestamp()
H A Dsqlite_single_ver_relational_storage_extend_executor.cpp648 int SQLiteSingleVerRelationalStorageExecutor::DeleteTable(const std::vector<std::string> &tableNames) in DeleteTable() argument
650 for (const auto &tableName : tableNames) { in DeleteTable()
695 int SQLiteSingleVerRelationalStorageExecutor::AlterTableName(const std::map<std::string, std::string> &tableNames) in AlterTableName() argument
697 for (const auto &tableName : tableNames) { in AlterTableName()
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/
H A Drelational_store.cpp663 std::vector<std::string> tableNames; in OH_Rdb_SetDistributedTables() local
664 tableNames.reserve(count); in OH_Rdb_SetDistributedTables()
669 tableNames.emplace_back(tables[i]); in OH_Rdb_SetDistributedTables()
672 tableNames, DistributedTableType::DISTRIBUTED_CLOUD, { cfg.isAutoSync })); in OH_Rdb_SetDistributedTables()
878 std::vector<std::string> tableNames; in OH_Rdb_CloudSync() local
883 tableNames.emplace_back(tables[i]); in OH_Rdb_CloudSync()
901 return ConvertorErrorCode::NativeToNdk(rdbStore->GetStore()->Sync(syncOption, tableNames, progressCallback)); in OH_Rdb_CloudSync()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dcloud_db_sync_utils_test.h70 static void callSync(const std::vector<std::string> &tableNames, SyncMode mode, DBStatus dbStatus,
H A Dcloud_db_sync_utils_test.cpp247 void CloudDBSyncUtilsTest::callSync(const std::vector<std::string> &tableNames, SyncMode mode, DBStatus dbStatus, in callSync() argument
251 Query query = Query::Select().FromTable(tableNames); in callSync()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_query_test.cpp279 const std::vector<std::string> tableNames = {tableName1, tableName2}; in HWTEST_F() local
280 expression1.SetTables(tableNames); in HWTEST_F()
H A Ddistributeddb_cloud_interfaces_relational_remove_device_data_test.cpp312 void CheckCloudTotalCount(const std::vector<std::string> &tableNames, std::vector<int64_t> expectCounts) in CheckCloudTotalCount() argument
315 for (size_t i = 0; i < tableNames.size(); ++i) { in CheckCloudTotalCount()
319 g_virtualCloudDb->Query(tableNames[i], extend, data); in CheckCloudTotalCount()
515 void CopySharedDataFromOriginalTable(sqlite3 *&db, const std::vector<std::string> &tableNames) in CopySharedDataFromOriginalTable() argument
517 for (const auto &tableName: tableNames) { in CopySharedDataFromOriginalTable()
H A Ddistributeddb_cloud_interfaces_relational_ext_test.cpp202 void PrepareData(const std::vector<std::string> &tableNames, bool primaryKeyIsRowId, in PrepareData() argument
213 for (const auto &tableName : tableNames) { in PrepareData()
236 for (const auto &tableName : tableNames) { in PrepareData()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/
H A Dquery.h36 DB_API Query &FromTable(const std::vector<std::string> &tableNames);
H A Dquery_expression.h152 void SetTables(const std::vector<std::string> &tableNames);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Drelational_schema_object.cpp120 std::vector<std::string> tableNames;
122 tableNames.emplace_back(it.first);
124 return tableNames;

Completed in 32 milliseconds

12