Home
last modified time | relevance | path

Searched refs:dbType (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dconnection.cpp27 auto dbType = config.GetDBType(); in Create() local
28 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Create()
43 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Repair()
58 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Delete()
72 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Collect()
86 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterCreator()
94 g_creators[dbType] = creator; in RegisterCreator()
100 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterRepairer()
108 g_repairers[dbType] = repairer; in RegisterRepairer()
114 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterDeleter()
[all …]
H A Drdb_store_config.cpp534 void RdbStoreConfig::SetDBType(int32_t dbType) in SetDBType() argument
536 dbType_ = dbType; in SetDBType()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dbackup_database_helper.cpp40 if (HasDb(dbType)) { in InitDb()
44 if (DB_INFO_MAP.count(dbType) == 0) { in InitDb()
48 DbInfo dbInfo = DB_INFO_MAP.at(dbType); in InitDb()
60 dbInfoMap_[dbType] = dbInfo; in InitDb()
66 for (auto dbType : dbTypeList) { in InitDb() local
67 InitDb(dbType, prefix); in InitDb()
73 if (HasDb(dbType)) { in AddDb()
86 dbType = fileQueryInfo.dbType; in IsFileExist()
87 if (!HasDb(fileQueryInfo.dbType)) { in IsFileExist()
106 return dbInfoMap_.count(dbType) > 0; in HasDb()
[all …]
H A Dupgrade_restore.cpp1221 int32_t dbType = BackupDatabaseHelper::DbType::DEFAULT; in CheckInvalidFile() local
1224 backupDatabaseHelper_.IsFileExist(sceneCode_, fileInfo, dbType, dbStatus, fileStatus); in CheckInvalidFile()
1225 …MEDIA_INFO_LOG("Check status type: %{public}d, db: %{public}d, file: %{public}d", dbType, dbStatus… in CheckInvalidFile()
1226 return BackupLogUtils::FileDbCheckInfoToString(FileDbCheckInfo(dbType, dbStatus, fileStatus)); in CheckInvalidFile()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/
H A Dbackup_database_helper.h45 int32_t dbType {DbType::DEFAULT};
50 FileQueryInfo(int32_t dbType, const std::string &tableName, const std::string &columnName, in FileQueryInfo()
51 …const std::string &path) : dbType(dbType), tableName(tableName), columnName(columnName), path(path… in FileQueryInfo()
56 void InitDb(int32_t dbType, const std::string &prefix);
58 void AddDb(int32_t dbType, std::shared_ptr<NativeRdb::RdbStore> rdbStore);
59 … void IsFileExist(int32_t sceneCode, const FileInfo &fileInfo, int32_t &dbType, int32_t &dbStatus,
63 bool HasDb(int32_t dbType);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Ddatabase_oper.cpp85 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in GetCtrlFilePrefix()
99 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in RekeyRecover()
117 return RecoverPrehandle(dbType, backupDir, preCtrlFileName); in RekeyRecover()
341 if (dbType == DBConstant::DB_TYPE_LOCAL) { // LCOV_EXCL_BR_LINE in RemoveDbDir()
347 if (dbType == DBConstant::DB_TYPE_SINGLE_VER) { // LCOV_EXCL_BR_LINE in RemoveDbDir()
353 if (dbType == DBConstant::DB_TYPE_MULTI_VER) { // LCOV_EXCL_BR_LINE in RemoveDbDir()
449 if (fileInfo.dbType != static_cast<uint32_t>(dbType)) { in UnpackAndCheckImportedFile()
451 …E("Check db type [%u] vs [%u] or devicesId fail!", fileInfo.dbType, static_cast<uint32_t>(dbType)); in UnpackAndCheckImportedFile()
508 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in ClearImportTempFile()
528 return RemoveImportedBackFiles(backupDir, oriKeepFile, dbType); in ClearImportTempFile()
[all …]
H A Ddatabase_oper.h78 int RecoverPrehandle(int dbType, const std::string &dir, const std::string &fileName);
80 int RemoveDbDir(const std::string &dir, int dbType, bool isNeedDelDir = true);
91 …int RecoverImportedBackFiles(const std::string &dir, const std::string &fileName, int dbType) cons…
93 …ImportedBackFiles(const std::string &backupDir, const std::string &ctrlFileName, int dbType) const;
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/report/
H A Dphotos_count_statistic.cpp290 .SetDbType(dbType) in GetAllStatInfo()
328 .SetDbType(dbType) in GetAllImageStatInfo()
365 .SetDbType(dbType) in GetAllVideoStatInfo()
398 .SetDbType(dbType) in GetAllRestoreStatInfo()
437 .SetDbType(dbType) in GetAllRestoreImageStatInfo()
474 .SetDbType(dbType) in GetAllRestoreVideoStatInfo()
516 .SetDbType(dbType) in GetImageAlbumInfo()
556 .SetDbType(dbType) in GetVideoAlbumInfo()
636 .SetDbType(dbType) in GetFavoriteAlbumStatInfo()
678 .SetDbType(dbType) in GetTrashedAlbumStatInfo()
[all …]
H A Dgallery_media_count_statistic.cpp473 .SetDbType(dbType) in GetAllStatInfo()
512 .SetDbType(dbType) in GetAllImageStatInfo()
549 .SetDbType(dbType) in GetAllVideoStatInfo()
584 .SetDbType(dbType) in GetAllRestoreStatInfo()
623 .SetDbType(dbType) in GetAllRestoreImageStatInfo()
660 .SetDbType(dbType) in GetAllRestoreVideoStatInfo()
693 .SetDbType(dbType) in GetSdCardStatInfo()
721 .SetDbType(dbType) in GetDuplicateStatInfo()
746 .SetDbType(dbType) in GetAppTwinStatInfo()
787 .SetDbType(dbType) in GetImageAlbumInfo()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dconnection.h45 static int32_t RegisterCreator(int32_t dbType, Creator creator);
46 static int32_t RegisterRepairer(int32_t dbType, Repairer repairer);
47 static int32_t RegisterDeleter(int32_t dbType, Deleter deleter);
48 static int32_t RegisterCollector(int32_t dbType, Collector collector);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/report/
H A Dmedia_backup_report_data_type.h183 AlbumNameInfo &SetDbType(int32_t dbType) in SetDbType() argument
185 this->dbType_ = dbType; in SetDbType()
332 int32_t dbType{-1};
335 FileDbCheckInfo(int32_t dbType, int32_t dbStatus, int32_t fileStatus) in FileDbCheckInfo()
336 : dbType(dbType), dbStatus(dbStatus), fileStatus(fileStatus) {} in FileDbCheckInfo()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoremanager_fuzzer/
H A Drelationalstoremanager_fuzzer.cpp102 auto dbType = static_cast<DBType>(data[0]); in RuntimeConfigTest() local
103 RuntimeConfig::SetAutoLaunchRequestCallback(autoLaunchRequestCallback, dbType); in RuntimeConfigTest()
106 RuntimeConfig::ReleaseAutoLaunch(userId, appId, storeId, dbType); in RuntimeConfigTest()
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/
H A Drelational_store.cpp56 int dbType = RDB_SQLITE; member
163 int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType) in OH_Rdb_SetDbType() argument
166 (dbType < RDB_SQLITE || dbType > RDB_CAYLEY)) { in OH_Rdb_SetDbType()
168 (config == nullptr), (config == nullptr ? 0 : config->magicNum), dbType); in OH_Rdb_SetDbType()
171 if (dbType == RDB_CAYLEY && !(OHOS::NativeRdb::IsUsingArkData())) { in OH_Rdb_SetDbType()
174 config->dbType = dbType; in OH_Rdb_SetDbType()
319 (config->dbType < RDB_SQLITE || config->dbType > RDB_CAYLEY)) { in GetRdbStoreConfig()
322 … %{public}d ret %{public}d", config->magicNum, config->securityLevel, config->area, config->dbType, in GetRdbStoreConfig()
337 rdbStoreConfig.SetIsVector(config->dbType == RDB_CAYLEY); in GetRdbStoreConfig()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/
H A Dsqlite_local_kvdb.cpp357 …int dbType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLIT… in RemoveKvDB() local
358 …return KvDBUtils::RemoveKvDB(storeDir, storeOnlyDir, KvDBProperties::GetStoreSubDirectory(dbType)); in RemoveKvDB()
366 …int dbType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLIT… in GetKvDBSize() local
367 …KvDBUtils::GetKvDbSize(storeDir, storeOnlyDir, KvDBProperties::GetStoreSubDirectory(dbType), size); in GetKvDBSize()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/
H A Dpreferences_dfx_adapter.h32 std::string dbType; // NORMAL_DB or ENHANCE_DB member
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_file_package_test.cpp145 g_fileInfo.dbType = 1; in SetUpTestCase()
191 ASSERT_EQ(fileInfo.dbType, g_fileInfo.dbType);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dpackage_file.h22 uint32_t dbType; member
H A Dpackage_file.cpp199 errCode = parcel.WriteUInt32(fileInfo.dbType); in PackFileHeader()
266 (void)parcel.ReadUInt32(fileInfo.dbType); in UnpackFileHeader()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dgeneric_kvdb.cpp381 void GenericKvDB::GetStoreDirectory(const KvDBProperties &properties, int dbType, in GetStoreDirectory() argument
386 std::string subDir = KvDBProperties::GetStoreSubDirectory(dbType); in GetStoreDirectory()
H A Dgeneric_kvdb.h165 void GetStoreDirectory(const KvDBProperties &properties, int dbType,
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/log/
H A Dbackup_log_utils.cpp94 infoStream << info.dbType; in FileDbCheckInfoToString()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_dfx_adapter.cpp87 .v = { .s = const_cast<char *>(reportParam.dbType.c_str()) }, in ReportDbFault()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/mock/include/
H A Dnapi_rdb_store.h80 int32_t dbType = NativeRdb::DB_SQLITE; variable
/ohos5.0/base/security/access_token/services/privacymanager/src/record/
H A Dpermission_record_manager.cpp379 … uint32_t dbType = static_cast<uint32_t>(results[0].GetInt(PrivacyFiledConst::FIELD_USED_TYPE)); in AddOrUpdateUsedTypeIfNeeded() local
380 ACCESSTOKEN_LOG_DEBUG(LABEL, "Record exsit, type is %{public}u.", dbType); in AddOrUpdateUsedTypeIfNeeded()
382 if ((dbType & inputType) == inputType) { in AddOrUpdateUsedTypeIfNeeded()
388 dbType |= inputType; in AddOrUpdateUsedTypeIfNeeded()
391 ACCESSTOKEN_LOG_DEBUG(LABEL, "Used type not add, generate new %{public}u.", dbType); in AddOrUpdateUsedTypeIfNeeded()
394 newValue.Put(PrivacyFiledConst::FIELD_USED_TYPE, static_cast<int32_t>(dbType)); in AddOrUpdateUsedTypeIfNeeded()
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/
H A Drelational_store.h310 int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType);

12