Home
last modified time | relevance | path

Searched refs:dbType (Results 1 - 21 of 21) sorted by relevance

/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()
32 auto creator = g_creators[dbType]; in Create()
42 auto dbType = config.GetDBType(); in Repair() local
43 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Repair()
47 auto repairer = g_repairers[dbType]; in Repair()
57 auto dbType = config.GetDBType(); in Delete() local
58 if (dbType < static_cas in Delete()
71 auto dbType = config.GetDBType(); Collect() local
84 RegisterCreator(int32_t dbType, Creator creator) RegisterCreator() argument
98 RegisterRepairer(int32_t dbType, Repairer repairer) RegisterRepairer() argument
112 RegisterDeleter(int32_t dbType, Deleter deleter) RegisterDeleter() argument
126 RegisterCollector(int32_t dbType, Collector collector) RegisterCollector() argument
[all...]
H A Drdb_store_config.cpp528 void RdbStoreConfig::SetDBType(int32_t dbType) in SetDBType() argument
530 dbType_ = dbType; in SetDBType()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Ddatabase_oper.cpp84 int dbType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLITE); in GetCtrlFilePrefix() local
85 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in GetCtrlFilePrefix()
98 int dbType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLITE); in RekeyRecover() local
99 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in RekeyRecover()
117 return RecoverPrehandle(dbType, backupDir, preCtrlFileName); in RekeyRecover()
322 int DatabaseOper::RecoverPrehandle(int dbType, const std::string &dir, const std::string &fileName) in RecoverPrehandle() argument
335 int DatabaseOper::RemoveDbDir(const std::string &dir, int dbType, bool isNeedDelDir) in RemoveDbDir() argument
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 in RemoveDbDir()
448 int dbType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLITE); UnpackAndCheckImportedFile() local
507 int dbType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLITE); ClearImportTempFile() local
555 int dbType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLITE); ClearExportedTempFiles() local
[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) const;
93 int RemoveImportedBackFiles(const std::string &backupDir, const std::string &ctrlFileName, int dbType) const;
/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);
/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()
/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()
269 LOGE("UnpackFileHeader parcel dbType error!"); in UnpackFileHeader()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/
H A Dpreferences_dfx_adapter.h32 std::string dbType; // NORMAL_DB or ENHANCE_DB member
/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()
167 LOG_ERROR("config is null %{public}d or magicNum not valid %{public}d or dbType is out of range %{public}d", 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_SQLIT in GetRdbStoreConfig()
[all...]
/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_SQLITE); 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_SQLITE); in GetKvDBSize() local
367 return KvDBUtils::GetKvDbSize(storeDir, storeOnlyDir, KvDBProperties::GetStoreSubDirectory(dbType), size); in GetKvDBSize()
/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); in HWTEST_F()
/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,
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/mock/include/
H A Dnapi_rdb_store.h79 int32_t dbType = NativeRdb::DB_SQLITE; member in OHOS::RelationalStoreJsKit::RdbStoreProxy
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_dfx_adapter.cpp91 .v = { .s = const_cast<char *>(reportParam.dbType.c_str()) }, in ReportDbFault()
/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/
H A Drelational_store.h300 * @brief Set property dbType into config
302 * @param dbType Indicates the dbType {@link Rdb_DBType} of the database
309 int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType);
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/
H A Dnapi_rdb_store.h165 int32_t dbType = NativeRdb::DB_SQLITE; member in OHOS::RelationalStoreJsKit::RdbStoreProxy
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/
H A Drdb_store_config.h240 void SetDBType(int32_t dbType);
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Drdb_store_config.h648 void SetDBType(int32_t dbType);
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_store.cpp269 proxy->dbType = value->GetDbType(); in NewInstance()
841 if (obj->dbType == DB_VECTOR) { in QuerySql()

Completed in 22 milliseconds