/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | kvdb_utils.cpp | 33 int KvDBUtils::RemoveKvDB(const std::string &dirAll, const std::string &dirStoreOnly, const std::string &dbName) in RemoveKvDB() argument 35 int errCodeAll = KvDBUtils::RemoveKvDB(dirAll, dbName); in RemoveKvDB() 39 int errCodeOnlyStore = KvDBUtils::RemoveKvDB(dirStoreOnly, dbName); in RemoveKvDB() 49 int KvDBUtils::RemoveKvDB(const std::string &dir, const std::string &dbName) in RemoveKvDB() argument 52 GetStoreDirectory(dbFileName, dbName); in RemoveKvDB() 69 const std::string &dbName, uint64_t &size) in GetKvDbSize() 71 int errCodeAll = SQLiteUtils::GetDbSize(dirAll, dbName, size); in GetKvDbSize() 76 int errCodeOnlyStore = SQLiteUtils::GetDbSize(dirStoreOnly, dbName, size); in GetKvDbSize() 68 GetKvDbSize(const std::string &dirAll, const std::string &dirStoreOnly, const std::string &dbName, uint64_t &size) GetKvDbSize() argument
|
H A D | kvdb_utils.h | 32 const std::string &dbName, uint64_t &size); 34 static int RemoveKvDB(const std::string &dir, const std::string &dbName); 35 static int RemoveKvDB(const std::string &dirAll, const std::string &dirStoreOnly, const std::string &dbName);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | security_manager_test.cpp | 76 std::string dbName = "test1"; in HWTEST_F() local 78 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 99 std::string dbName = "test2"; in HWTEST_F() local 101 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 106 std::thread thread([dbPath, dbName, blockResult]() { in HWTEST_F() 107 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 129 std::string dbName = "test3"; in HWTEST_F() local 131 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 135 std::thread thread([dbPath, dbName, blockResult]() { in HWTEST_F() 136 SecurityManager::KeyFiles keyFiles(dbName, dbPat in HWTEST_F() [all...] |
/foundation/bundlemanager/app_domain_verify/test/unittest/services/app_domain_verify_rdb_test/ |
H A D | app_domain_verify_rdb_data_manager_test.cpp | 71 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 88 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 108 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 126 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 147 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 167 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 185 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 205 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 225 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 243 rdbConfig.dbName in HWTEST_F() [all...] |
H A D | app_domain_verify_rdb_open_callback_test.cpp | 60 rdbConfig.dbName = Constants::RDB_NAME; in HWTEST_F() 62 NativeRdb::RdbStoreConfig rdbStoreConfig(rdbConfig.dbPath + rdbConfig.dbName); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbstoreBackupRestoreWithFAContextJsunit.test.js | 206 let dbName = "notExistName.db" 210 expect(false).assertEqual(fileio.accessSync(DATABASE_DIR + dbName)) 214 RestoreTest(dbName) 244 let dbName = "QueryTest_bak.db" 245 await rdbStore.backup(dbName) 272 let dbName = "notExistName.db" 273 BackupTest(dbName); 284 await rdbStore.restore(dbName)
|
H A D | RdbStoreCorruptJsunit.test.js | 30 const dbName = "Resultset.db" 32 name: dbName, 37 const dbPath = "/data/storage/el2/database/entry/rdb/" + dbName; 38 const dbPathWal = "/data/storage/el2/database/entry/rdb/" + dbName + "-wal"; 39 const dbPathShm = "/data/storage/el2/database/entry/rdb/" + dbName + "-shm"; 159 name: dbName,
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/ |
H A D | document_store_manager.cpp | 56 std::string dbName; in GetDocumentStore() local 57 int errCode = CheckDBPath(path, canonicalPath, dbName); in GetDocumentStore() 80 std::string dbRealPath = canonicalPath + "/" + dbName; in GetDocumentStore() 128 int DocumentStoreManager::CheckDBPath(const std::string &path, std::string &canonicalPath, std::string &dbName) in CheckDBPath() argument 141 OSAPI::SplitFilePath(path, dirPath, dbName); in CheckDBPath()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_rekey_test.cpp | 40 static std::chrono::system_clock::time_point GetKeyFileDate(const std::string &dbName); 41 static bool ChangeKeyFileDate(const std::string &dbName, int rep); 42 static bool SaveNewKey(const std::string &dbName); 126 std::chrono::system_clock::time_point RdbRekeyTest::GetKeyFileDate(const std::string &dbName) in GetKeyFileDate() argument 129 std::string name = RemoveSuffix(dbName); in GetKeyFileDate() 148 bool RdbRekeyTest::ChangeKeyFileDate(const std::string &dbName, int rep) in ChangeKeyFileDate() argument 150 std::string name = RemoveSuffix(dbName); in ChangeKeyFileDate() 169 bool RdbRekeyTest::SaveNewKey(const string &dbName) in SaveNewKey() argument 171 std::string name = RemoveSuffix(dbName); in SaveNewKey()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.cpp | 298 std::string dbName = kvDBProp.GetStringProp(KvDBProperties::FILE_NAME, DBConstant::LOCAL_DATABASE_NAME); in InitDataBaseOption() local 308 std::string uri = dataDir + "/" + identifierDir + "/" + subDir + "/" + dbName + DBConstant::DB_EXTENSION; in InitDataBaseOption() 320 std::string dbName = properties.GetStringProp(KvDBProperties::FILE_NAME, DBConstant::LOCAL_DATABASE_NAME); in BackupCurrentDatabase() local 323 std::string currentDb = baseDir + "/" + subDir + "/" + dbName + DBConstant::DB_EXTENSION; in BackupCurrentDatabase() 324 std::string dstDb = dir + "/" + dbName + DBConstant::DB_EXTENSION; in BackupCurrentDatabase() 340 std::string dbName = properties.GetStringProp(KvDBProperties::FILE_NAME, DBConstant::LOCAL_DATABASE_NAME); in ImportDatabase() local 343 std::string dstDb = baseDir + "/" + subDir + "/" + dbName + DBConstant::DB_EXTENSION; in ImportDatabase() 344 std::string currentDb = dir + "/" + dbName + DBConstant::DB_EXTENSION; in ImportDatabase()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/ |
H A D | distributed_rdb_tools.cpp | 125 const std::string dbName = param.path + param.storeId + ".db";
in InitSqlite3Store() local 126 DBStributedDB::OS::RemoveFile(dbName);
in InitSqlite3Store() 127 int errCode = sqlite3_open(dbName, &db);
in InitSqlite3Store()
|
/foundation/bundlemanager/app_domain_verify/services/include/manager/rdb/ |
H A D | app_domain_verify_rdb_config.h | 29 std::string dbName; member
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/rdb/ |
H A D | bms_rdb_config.h | 29 std::string dbName; member
|
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/ |
H A D | others_clone_restore.h | 48 std::string dbName = ""); 59 void GetCloneDbInfos(const std::string &dbName, std::vector<CloneDbInfo> &mediaDbInfo);
|
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_restore_db_utils.cpp | 31 int32_t RingtoneRestoreDbUtils::InitDb(std::shared_ptr<NativeRdb::RdbStore> &rdbStore, const std::string &dbName, in InitDb() argument 34 NativeRdb::RdbStoreConfig config(dbName); in InitDb()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/include/ |
H A D | document_store_manager.h | 33 static int CheckDBPath(const std::string &path, std::string &canonicalPath, std::string &dbName);
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bms_param.cpp | 29 bmsRdbConfig.dbName = ServiceConstants::BUNDLE_RDB_NAME; in BmsParam()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/rdb/ |
H A D | rdb_data_manager.cpp | 60 NativeRdb::RdbStoreConfig rdbStoreConfig(bmsRdbConfig_.dbPath + bmsRdbConfig_.dbName); in GetRdbStore() 89 CheckSystemSizeAndHisysEvent(bmsRdbConfig_.dbPath, bmsRdbConfig_.dbName); in GetRdbStore() 93 APP_LOGI("start %{public}s restore ret %{public}d, type:%{public}d", bmsRdbConfig_.dbName.c_str(), in GetRdbStore() 118 APP_LOGI("%{public}s backup start", bmsRdbConfig_.dbName.c_str()); in BackupRdb() 128 APP_LOGI("%{public}s backup end", bmsRdbConfig_.dbName.c_str()); in BackupRdb()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
H A D | distributeddb_kv_realdel_test.cpp | 307 const std::string dbName = DIRECTOR + hashIdentifierRes + MULTIDB; in HWTEST_F() local 310 EXPECT_TRUE(DistributedTestTools::QuerySpecifiedData(dbName, SYNC_VALUE_SLICE_QUERY_SQL, attribute, count)); in HWTEST_F() 351 const std::string dbName = DIRECTOR + hashIdentifierRes + MULTIDB; in HWTEST_F() local 356 EXPECT_TRUE(DistributedTestTools::QuerySpecifiedData(dbName, SYNC_VALUE_SLICE_QUERY_SQL, attribute, count)); in HWTEST_F() 365 EXPECT_TRUE(DistributedTestTools::QuerySpecifiedData(dbName, SYNC_VALUE_SLICE_QUERY_SQL, attribute, count)); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_encrypt_test.cpp | 244 int Export(const string &dbName) in Export() argument 247 int errCode = sqlite3_exec(g_db, ("SELECT " + EXPORT_STRING + "('" + dbName + "');").c_str(), nullptr, nullptr, in Export() 257 int Attach(const string &dbName) in Attach() argument 260 int errCode = sqlite3_exec(g_db, ("attach '" + dbName + ".db' as " + dbName + " key '';").c_str(), in Attach() 270 int AttachWithKey(const string &dbName, const char *passwd) in AttachWithKey() argument 273 int errCode = sqlite3_exec(g_db, ("attach '" + dbName + ".db' as " + dbName + " key '" + passwd + "';").c_str(), in AttachWithKey()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/ |
H A D | rdb_data_manager.h | 36 std::string dbName{ ABILITY_RDB_NAME };
|
/foundation/multimedia/ringtone_library/services/ringtone_restore/include/ |
H A D | ringtone_restore_db_utils.h | 28 static int32_t InitDb(std::shared_ptr<NativeRdb::RdbStore> &rdbStore, const std::string &dbName,
|
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | others_clone_restore.cpp | 143 void OthersCloneRestore::GetCloneDbInfos(const std::string &dbName, std::vector<CloneDbInfo> &mediaDbInfo) in GetCloneDbInfos() argument 145 std::string dbPath = OTHER_CLONE_DB_PATH + dbName; in GetCloneDbInfos() 147 MEDIA_ERR_LOG("Init rdb not exists, dbName = %{public}s", dbName.c_str()); in GetCloneDbInfos() 151 int32_t initErr = BackupDatabaseUtils::InitDb(mediaRdb, dbName, dbPath, mediaAppName_, false); in GetCloneDbInfos() 153 MEDIA_ERR_LOG("Init rdb fail, dbName = %{public}s, err = %{public}d", dbName.c_str(), initErr); in GetCloneDbInfos() 159 MEDIA_INFO_LOG("dbName = %{public}s, totalNumber = %{public}d", dbName.c_str(), totalNumber); in GetCloneDbInfos() 506 std::string dbName) [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/uninstall_data_mgr/ |
H A D | uninstall_data_mgr_storage_rdb.cpp | 34 bmsRdbConfig.dbName = ServiceConstants::BUNDLE_RDB_NAME; in UninstallDataMgrStorageRdb()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/rdb/ |
H A D | rdb_data_manager.cpp | 30 NativeRdb::RdbStoreConfig rdbStoreConfig(amsRdbConfig_.dbPath + amsRdbConfig_.dbName); in Init()
|