/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/src/database/ |
H A D | sandbox_manager_rdb.cpp | 110 std::string tableName; in Add() local 111 GetTableNameByType(type, tableName); in Add() 112 if (tableName.empty()) { in Add() 113 SANDBOXMANAGER_LOG_ERROR(LABEL, "cannot find tableName by type:%{public}u, please check", type); in Add() 116 SANDBOXMANAGER_LOG_DEBUG(LABEL, "Add table name is : %{public}s", tableName.c_str()); in Add() 137 res = db_->InsertWithConflictResolution(rowId, tableName, bucket, solution); in Add() 140 tableName.c_str(), res); in Add() 159 std::string tableName; in Remove() local 160 GetTableNameByType(type, tableName); in Remove() 161 if (tableName in Remove() 194 std::string tableName; Modify() local 234 std::string tableName; FindSubPath() local 269 std::string tableName; Find() local [all...] |
H A D | sandbox_manager_rdb_open_callback.cpp | 60 const std::string &tableName) const in CreatePersistedPolicyTable() 63 sql.append(tableName + " (") in CreatePersistedPolicyTable()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_rdb_data_mgr.cpp | 51 std::string createTableSql = "CREATE TABLE IF NOT EXISTS " + notificationRdbConfig_.tableName in OnCreate() 134 ANS_LOGE("Query tableName failed. It's empty!"); in InitCreatedTables() 139 std::string tableName; in InitCreatedTables() local 140 ret = absSharedResultSet->GetString(0, tableName); in InitCreatedTables() 145 createdTables_.insert(tableName); in InitCreatedTables() 178 std::string tableName; in InsertData() local 179 int32_t ret = GetUserTableName(userId, tableName); in InsertData() 193 ret = rdbStore_->InsertWithConflictResolution(rowId, tableName, valuesBucket, in InsertData() 209 std::string tableName; in InsertData() local 210 int32_t ret = GetUserTableName(userId, tableName); in InsertData() 241 std::string tableName; InsertBatchData() local 292 DeleteData(const std::string tableName, const std::string key, int32_t &rowId) DeleteData() argument 351 QueryData(const std::string tableName, const std::string key, std::string &value) QueryData() argument 400 QueryData(const std::string tableName, const std::string key, std::vector<uint8_t> &value) QueryData() argument 452 QueryDataBeginWithKey( const std::string tableName, const std::string key, std::unordered_map<std::string, std::string> &values) QueryDataBeginWithKey() argument 517 QueryAllData( const std::string tableName, std::unordered_map<std::string, std::string> &datas) QueryAllData() argument 563 std::string tableName = stream.str(); DropUserTable() local 582 GetUserTableName(const int32_t &userId, std::string &tableName) GetUserTableName() argument 622 std::string tableName = stream.str(); GenerateOperatedTables() local [all...] |
/base/telephony/telephony_data/global_params/src/ |
H A D | rdb_global_params_callback.cpp | 66 void RdbGlobalParamsCallback::InitEccData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, in InitEccData() argument 80 ClearData(rdbStore, tableName); in InitEccData() 92 rdbStore.Insert(id, tableName, value); in InitEccData() 102 void RdbGlobalParamsCallback::InitNumMatchData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, in InitNumMatchData() argument 116 ClearData(rdbStore, tableName); in InitNumMatchData() 128 rdbStore.Insert(id, tableName, value); in InitNumMatchData() 138 void RdbGlobalParamsCallback::InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, in InitData() argument 142 if (tableName.compare(TABLE_NUMBER_MATCH) == 0) { in InitData() 143 InitNumMatchData(rdbStore, tableName, hashCheck); in InitData() 144 } else if (tableName in InitData() 151 ClearData(NativeRdb::RdbStore &rdbStore, const std::string &tableName) ClearData() argument [all...] |
H A D | rdb_global_params_helper.cpp | 96 void RdbGlobalParamsHelper::CreateGlobalParamsTableStr(std::string &createTableStr, const std::string &tableName) in CreateGlobalParamsTableStr() argument 98 if (tableName == TABLE_ECC_DATA) { in CreateGlobalParamsTableStr() 100 } else if (tableName == TABLE_NUMBER_MATCH) { in CreateGlobalParamsTableStr()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/ |
H A D | access_token_db.cpp | 71 const std::string& tableName, const std::vector<NativeRdb::ValuesBucket>& buckets) in RestoreAndInsertIfCorrupt() 85 res = db_->BatchInsert(outInsertNum, tableName, buckets); in RestoreAndInsertIfCorrupt() 88 tableName.c_str(), res); in RestoreAndInsertIfCorrupt() 98 std::string tableName; in Add() local 99 AccessTokenDbUtil::GetTableNameByType(type, tableName); in Add() 100 if (tableName.empty()) { in Add() 120 int32_t res = db_->BatchInsert(outInsertNum, tableName, buckets); in Add() 123 tableName.c_str(), res); in Add() 124 int32_t result = RestoreAndInsertIfCorrupt(res, outInsertNum, tableName, buckets); in Add() 138 " records to table %{public}s.", endTime - beginTime, outInsertNum, tableName in Add() 70 RestoreAndInsertIfCorrupt(const int32_t resultCode, int64_t& outInsertNum, const std::string& tableName, const std::vector<NativeRdb::ValuesBucket>& buckets) RestoreAndInsertIfCorrupt() argument 171 std::string tableName; Remove() local 235 std::string tableName; Modify() local 314 std::string tableName; Find() local 363 DeleteAndAddSingleTable(const GenericValues delCondition, const std::string& tableName, const std::vector<GenericValues>& addValues) DeleteAndAddSingleTable() argument [all...] |
H A D | access_token_open_callback.cpp | 40 std::string tableName; in CreateHapTokenInfoTable() local 41 AccessTokenDbUtil::GetTableNameByType(AtmDataType::ACCESSTOKEN_HAP_INFO, tableName); in CreateHapTokenInfoTable() 43 std::string sql = "create table if not exists " + tableName; in CreateHapTokenInfoTable() 78 std::string tableName; in CreateNativeTokenInfoTable() local 79 AccessTokenDbUtil::GetTableNameByType(AtmDataType::ACCESSTOKEN_NATIVE_INFO, tableName); in CreateNativeTokenInfoTable() 81 std::string sql = "create table if not exists " + tableName; in CreateNativeTokenInfoTable() 106 std::string tableName; in CreatePermissionDefinitionTable() local 107 AccessTokenDbUtil::GetTableNameByType(AtmDataType::ACCESSTOKEN_PERMISSION_DEF, tableName); in CreatePermissionDefinitionTable() 109 std::string sql = "create table if not exists " + tableName; in CreatePermissionDefinitionTable() 146 std::string tableName; in CreatePermissionStateTable() local 176 std::string tableName; CreatePermissionRequestToggleStatusTable() local 250 std::string tableName; AddAvailableTypeColumn() local 276 std::string tableName; AddRequestToggleStatusColumn() local 302 std::string tableName; AddPermDialogCapColumn() local [all...] |
H A D | access_token_db_util.cpp | 38 void AccessTokenDbUtil::GetTableNameByType(const AtmDataType type, std::string& tableName) in GetTableNameByType() argument 42 tableName = iterator->second; in GetTableNameByType()
|
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/ |
H A D | ohos_web_permission_data_base_adapter_impl.cpp | 122 std::string tableName = KeyToTableName(key); in ExistPermissionByOrigin() local 123 if (tableName.empty()) { in ExistPermissionByOrigin() 128 NativeRdb::AbsRdbPredicates dirAbsPred(tableName); in ExistPermissionByOrigin() 145 std::string tableName = KeyToTableName(key); in GetPermissionResultByOrigin() local 146 if (tableName.empty()) { in GetPermissionResultByOrigin() 151 NativeRdb::AbsRdbPredicates dirAbsPred(tableName); in GetPermissionResultByOrigin() 174 std::string tableName = KeyToTableName(key); in SetPermissionByOrigin() local 175 if (tableName.empty()) { in SetPermissionByOrigin() 184 errCode = rdbStore_->Insert(outRowId, tableName, valuesBucket); in SetPermissionByOrigin() 195 std::string tableName in ClearPermissionByOrigin() local 211 std::string tableName = KeyToTableName(key); ClearAllPermission() local 229 std::string tableName = KeyToTableName(key); GetOriginsByPermission() local [all...] |
/base/telephony/telephony_data/global_params/include/ |
H A D | rdb_global_params_callback.h | 38 void InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, const bool hashCheck); 39 void InitNumMatchData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, const bool hashCheck); 40 void InitEccData(NativeRdb::RdbStore &rdbStore, const std::string &tableName, const bool hashCheck); 41 int ClearData(NativeRdb::RdbStore &rdbStore, const std::string &tableName);
|
H A D | rdb_global_params_helper.h | 46 void CreateGlobalParamsTableStr(std::string &createTableStr, const std::string &tableName);
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_rdb_data_mgr.h | 36 std::string tableName { NotificationConstant::NOTIFICATION_RDB_TABLE_NAME }; 152 int32_t GetUserTableName(const int32_t &userId, std::string &tableName); 154 int32_t DeleteData(const std::string tableName, const std::string key, int32_t &rowId); 155 int32_t QueryData(const std::string tableName, const std::string key, std::string &value); 156 int32_t QueryData(const std::string tableName, const std::string key, std::vector<uint8_t> &value); 157 int32_t QueryDataBeginWithKey(const std::string tableName, const std::string key, 159 int32_t QueryAllData(const std::string tableName, std::unordered_map<std::string, std::string> &datas);
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
H A D | data_share_store.cpp | 66 int DataShareStore::DropTable(const std::string &tableName) in DropTable() argument 70 HIVIEW_LOGE("failed to drop table %{public}s, db is null", tableName.c_str()); in DropTable() 73 std::string sql = SqlUtil::GenerateDropSql(tableName); in DropTable() 75 HIVIEW_LOGE("failed to drop table %{public}s, ret=%{public}d", tableName.c_str(), ret); in DropTable()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/rdb/src/ |
H A D | cm_rdb_data_manager.cpp | 44 auto ret = rdbStore->InsertWithConflictResolution(rowId, rdbConfig_.tableName, valuesBucket,
in InsertData() 59 NativeRdb::AbsRdbPredicates updatePredicates(rdbConfig_.tableName);
in UpdateData() 75 NativeRdb::AbsRdbPredicates deletePredicates(rdbConfig_.tableName);
in DeleteData() 92 NativeRdb::AbsRdbPredicates queryPredicates(rdbConfig_.tableName);
in QueryData()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/rdb/include/ |
H A D | cm_rdb_config.h | 29 std::string tableName;
member
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/database/ |
H A D | access_token_db.h | 50 const std::string& tableName, const std::vector<NativeRdb::ValuesBucket>& buckets); 57 int32_t DeleteAndAddSingleTable(const GenericValues delCondition, const std::string& tableName,
|
H A D | access_token_db_util.h | 40 static void GetTableNameByType(const AtmDataType type, std::string& tableName);
|
/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/include/database/ |
H A D | sandbox_manager_rdb_open_callback.h | 48 int32_t CreatePersistedPolicyTable(NativeRdb::RdbStore &rdbStore, const std::string &tableName) const;
|
/base/telephony/telephony_data/pdp_profile/include/ |
H A D | rdb_pdp_profile_helper.h | 66 * @param tableName tableName 68 void CreatePdpProfileTableStr(std::string &createTableStr, const std::string &tableName);
|
H A D | rdb_pdp_profile_callback.h | 39 void InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName);
|
H A D | pdp_profile_ability.h | 84 * @param tableName table name of the predicates 88 const std::string &tableName, const DataShare::DataSharePredicates &predicates); 111 std::shared_ptr<NativeRdb::ResultSet> QueryPdpProfile(Uri &uri, const std::string &tableName,
|
/base/update/updateservice/services/core/ability/sqlite/core/include/ |
H A D | idatabase.h | 31 virtual bool Insert(const std::string &tableName, const std::vector<NativeRdb::ValuesBucket> &values) = 0;
|
/base/customization/enterprise_device_management/services/edm/src/database/ |
H A D | edm_rdb_data_manager.cpp | 76 bool EdmRdbDataManager::Insert(const std::string &tableName, const NativeRdb::ValuesBucket &valuesBucket)
in Insert() argument 85 auto ret = rdbStore->InsertWithConflictResolution(rowId, tableName, valuesBucket,
in Insert()
|
/base/telephony/telephony_data/opkey/src/ |
H A D | rdb_opkey_callback.cpp | 62 int64_t RdbOpKeyCallback::InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName) in InitData() argument 102 result = rdbStore.BatchInsert(outInsertNum, tableName, valuesBuckets); in InitData()
|
/base/telephony/telephony_data/pdp_profile/src/ |
H A D | rdb_pdp_profile_callback.cpp | 83 void RdbPdpProfileCallback::InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName) in InitData() argument 103 rdbStore.Insert(id, tableName, value); in InitData()
|