Home
last modified time | relevance | path

Searched refs:databasePath (Results 1 – 9 of 9) sorted by relevance

/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
Drdb_sql_utils.cpp44 std::string databasePath = baseDir + "/rdb"; in GetDefaultDatabasePath() local
45 if (access(databasePath.c_str(), F_OK) != 0) { in GetDefaultDatabasePath()
46 if (MKDIR(databasePath.c_str())) { in GetDefaultDatabasePath()
50 return databasePath.append("/").append(name); in GetDefaultDatabasePath()
Drdb_store_impl.cpp720 int RdbStoreImpl::GetDataBasePath(const std::string &databasePath, std::string &backupFilePath) in GetDataBasePath() argument
722 if (databasePath.empty()) { in GetDataBasePath()
727 if (ISFILE(databasePath)) { in GetDataBasePath()
728 backupFilePath = ExtractFilePath(path) + databasePath; in GetDataBasePath()
731 …if (!PathToRealPath(ExtractFilePath(databasePath), backupFilePath) || databasePath.back() == '/' || in GetDataBasePath()
732 databasePath.substr(databasePath.length() - 2, 2) == "\\") { in GetDataBasePath()
736 backupFilePath = databasePath; in GetDataBasePath()
785 int RdbStoreImpl::Backup(const std::string databasePath, const std::vector<uint8_t> destEncryptKey) in Backup() argument
788 int ret = GetDataBasePath(databasePath, backupFilePath); in Backup()
813 int RdbStoreImpl::InnerBackup(const std::string databasePath, const std::vector<uint8_t> destEncryp… in InnerBackup() argument
[all …]
/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/
Drelational_store.h311 int OH_Rdb_Backup(OH_Rdb_Store *store, const char *databasePath);
322 int OH_Rdb_Restore(OH_Rdb_Store *store, const char *databasePath);
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/
Drelational_store.cpp247 int OH_Rdb_Backup(OH_Rdb_Store *store, const char *databasePath) in OH_Rdb_Backup() argument
250 if (rdbStore == nullptr || databasePath == nullptr) { in OH_Rdb_Backup()
253 return rdbStore->GetStore()->Backup(databasePath); in OH_Rdb_Backup()
256 int OH_Rdb_Restore(OH_Rdb_Store *store, const char *databasePath) in OH_Rdb_Restore() argument
259 if (rdbStore == nullptr || databasePath == nullptr) { in OH_Rdb_Restore()
262 return rdbStore->GetStore()->Restore(databasePath); in OH_Rdb_Restore()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/
Drdb_store_impl.h68 int Backup(const std::string databasePath,
111 int GetDataBasePath(const std::string &databasePath, std::string &backupFilePath);
116 int InnerBackup(const std::string databasePath,
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
Drdb_store_impl.h113 int Backup(const std::string databasePath,
178 int GetDataBasePath(const std::string &databasePath, std::string &backupFilePath);
183 int InnerBackup(const std::string databasePath,
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/
Drdb_store.h74 …virtual int Backup(const std::string databasePath, const std::vector<uint8_t> destEncryptKey = {})…
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
Drdb_store.h303 …virtual int Backup(const std::string databasePath, const std::vector<uint8_t> destEncryptKey = {})…
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/data_sync/
Drdb_store_mock.h101 …MOCK_METHOD2(Backup, int(const std::string databasePath, const std::vector<uint8_t> destEncryptKey…