Home
last modified time | relevance | path

Searched refs:GetDbProperties (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Dmulti_ver_database_oper.cpp43 return ExecuteRekey(passwd, multiVerNaturalStore_->GetDbProperties()); in Rekey()
53 return ExecuteImport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Import()
62 return ExecuteExport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Export()
69 multiVerNaturalStore_->GetDbProperties().GetPassword(cipherType, cachePasswd); in RekeyPreHandle()
82 int errCode = GetCtrlFilePrefix(multiVerNaturalStore_->GetDbProperties(), filePrefix); in BackupDb()
108 int errCode = RekeyRecover(multiVerNaturalStore_->GetDbProperties()); in CloseStorages()
122 int errCode = multiVerNaturalStore_->InitStorages(multiVerNaturalStore_->GetDbProperties()); in RekeyPostHandle()
126 return RekeyRecover(multiVerNaturalStore_->GetDbProperties()); in RekeyPostHandle()
184 multiVerNaturalStore_->GetDbProperties().GetPassword(cipherType, passwd); in BackupCurrentDatabase()
257 return multiVerNaturalStore_->InitStorages(multiVerNaturalStore_->GetDbProperties()); in ImportPostHandle()
[all …]
H A Dlocal_database_oper.cpp37 return ExecuteRekey(passwd, localKvDb_->GetDbProperties()); in Rekey()
46 return ExecuteImport(filePath, passwd, localKvDb_->GetDbProperties()); in Import()
51 return ExecuteExport(filePath, passwd, localKvDb_->GetDbProperties()); in Export()
58 localKvDb_->GetDbProperties().GetPassword(cipherType, cachePasswd); in RekeyPreHandle()
77 int errCode = GetCtrlFilePrefix(localKvDb_->GetDbProperties(), filePrefix); in BackupDb()
93 localKvDb_->GetDbProperties().GetPassword(cipherType, oldPasswd); in BackupDb()
102 int errCode = RekeyRecover(localKvDb_->GetDbProperties()); in CloseStorages()
119 return localKvDb_->InitDatabaseContext(localKvDb_->GetDbProperties()); in RekeyPostHandle()
130 localKvDb_->GetDbProperties().GetPassword(cipherType, currPasswd); in ExportAllDatabases()
185 localKvDb_->GetDbProperties().GetPassword(cipherType, passwd); in ImportUnpackedDatabase()
[all …]
H A Dsingle_ver_database_oper.cpp40 int mainSecLabel = singleVerNaturalStore_->GetDbProperties().GetSecLabel(); in SetSecOpt()
47 option.securityLabel = singleVerNaturalStore_->GetDbProperties().GetSecLabel(); in SetSecOpt()
48 option.securityFlag = singleVerNaturalStore_->GetDbProperties().GetSecFlag(); in SetSecOpt()
62 return ExecuteRekey(passwd, singleVerNaturalStore_->GetDbProperties()); in Rekey()
71 return ExecuteImport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Import()
80 return ExecuteExport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Export()
92 singleVerNaturalStore_->GetDbProperties().GetPassword(cipherType, cachePasswd); in RekeyPreHandle()
150 int errCode = RekeyRecover(singleVerNaturalStore_->GetDbProperties()); in CloseStorages()
183 singleVerNaturalStore_->GetDbProperties().GetPassword(cipherType, currPasswd); in ExportMainDB()
336 singleVerNaturalStore_->GetDbProperties().GetPassword(cipherType, passwd); in ImportUnpackedMainDatabase()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dsync_able_engine.cpp118 …bool isSyncDualTupleMode = store_->GetDbProperties().GetBoolProp(DBProperties::SYNC_DUAL_TUPLE_MOD… in StartSyncerWithNoLock()
119 std::string label = store_->GetDbProperties().GetStringProp(DBProperties::IDENTIFIER_DATA, ""); in StartSyncerWithNoLock()
171 …bool isSyncDualTupleMode = store_->GetDbProperties().GetBoolProp(DBProperties::SYNC_DUAL_TUPLE_MOD… in UserChangeHandle()
181 … bool isNeedActive = RuntimeContext::GetInstance()->IsSyncerNeedActive(store_->GetDbProperties()); in UserChangeHandle()
201 std::string label = store_->GetDbProperties().GetStringProp(DBProperties::IDENTIFIER_DATA, ""); in ChangeUserListener()
211 …bool isSyncDualTupleMode = store_->GetDbProperties().GetBoolProp(DBProperties::SYNC_DUAL_TUPLE_MOD… in SetSyncModuleActive()
217 … isSyncNeedActive_ = RuntimeContext::GetInstance()->IsSyncerNeedActive(store_->GetDbProperties()); in SetSyncModuleActive()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/
H A Dsingle_ver_syncer.cpp29 … std::string userId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::USER_ID, ""); in RemoteDeviceOffline()
30 std::string appId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::APP_ID, ""); in RemoteDeviceOffline()
31 …std::string storeId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::STORE_ID, ""… in RemoteDeviceOffline()
H A Dsingle_ver_data_sync_utils.cpp26 param.appId = storage->GetDbProperties().GetStringProp(DBProperties::APP_ID, ""); in FillPermissionCheckParam()
27 param.userId = storage->GetDbProperties().GetStringProp(DBProperties::USER_ID, ""); in FillPermissionCheckParam()
28 param.storeId = storage->GetDbProperties().GetStringProp(DBProperties::STORE_ID, ""); in FillPermissionCheckParam()
29 param.instanceId = storage->GetDbProperties().GetIntProp(DBProperties::INSTANCE_ID, 0); in FillPermissionCheckParam()
222 bool memory = storage->GetDbProperties().GetBoolProp(KvDBProperties::MEMORY_MODE, false); in CheckPermitReceiveData()
526 storage.GetDbProperties().GetStringProp(DBProperties::USER_ID, ""), in RecordClientId()
527 storage.GetDbProperties().GetStringProp(DBProperties::APP_ID, ""), in RecordClientId()
528 storage.GetDbProperties().GetStringProp(DBProperties::STORE_ID, "") in RecordClientId()
H A Dsingle_ver_kv_syncer.cpp127 … std::string userId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::USER_ID, ""); in RemoteDataChanged()
128 std::string appId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::APP_ID, ""); in RemoteDataChanged()
129 …std::string storeId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::STORE_ID, ""… in RemoteDataChanged()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dsync_able_kvdb.cpp130 …bool isSyncDualTupleMode = syncInterface->GetDbProperties().GetBoolProp(KvDBProperties::SYNC_DUAL_… in SetSyncModuleActive()
137 …cNeedActive_ = RuntimeContext::GetInstance()->IsSyncerNeedActive(syncInterface->GetDbProperties()); in SetSyncModuleActive()
184 …bool isSyncDualTupleMode = syncInterface->GetDbProperties().GetBoolProp(KvDBProperties::SYNC_DUAL_… in StartSyncerWithNoLock()
186 …std::string label = syncInterface->GetDbProperties().GetStringProp(DBProperties::IDENTIFIER_DATA, … in StartSyncerWithNoLock()
259 bool isSyncDualTupleMode = syncInterface->GetDbProperties(). in UserChangeHandle()
270 …isNeedActive = RuntimeContext::GetInstance()->IsSyncerNeedActive(syncInterface->GetDbProperties()); in UserChangeHandle()
292 …std::string label = syncInterface->GetDbProperties().GetStringProp(DBProperties::IDENTIFIER_DATA, … in ChangeUserListener()
436 … bool localOnly = syncInterface->GetDbProperties().GetBoolProp(KvDBProperties::LOCAL_ONLY, false); in SetSyncRetry()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/
H A Dsync_generic_interface.h151 dbInfo.appId = GetDbProperties().GetStringProp(DBProperties::APP_ID, ""); in GetDBInfo()
152 dbInfo.userId = GetDbProperties().GetStringProp(DBProperties::USER_ID, ""); in GetDBInfo()
153 dbInfo.storeId = GetDbProperties().GetStringProp(DBProperties::STORE_ID, ""); in GetDBInfo()
H A Disync_interface.h69 virtual const DBProperties &GetDbProperties() const = 0;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dsync_task_context.cpp761 std::string appId = syncInterface_->GetDbProperties().GetStringProp(DBProperties::APP_ID, ""); in RunPermissionCheck()
762 std::string userId = syncInterface_->GetDbProperties().GetStringProp(DBProperties::USER_ID, ""); in RunPermissionCheck()
763 … std::string storeId = syncInterface_->GetDbProperties().GetStringProp(DBProperties::STORE_ID, ""); in RunPermissionCheck()
764 int32_t instanceId = syncInterface_->GetDbProperties().GetIntProp(DBProperties::INSTANCE_ID, 0); in RunPermissionCheck()
H A Dremote_executor.cpp225 std::string appId = storage->GetDbProperties().GetStringProp(DBProperties::APP_ID, ""); in CheckPermissions()
226 std::string userId = storage->GetDbProperties().GetStringProp(DBProperties::USER_ID, ""); in CheckPermissions()
227 std::string storeId = storage->GetDbProperties().GetStringProp(DBProperties::STORE_ID, ""); in CheckPermissions()
228 int32_t instanceId = syncInterface_->GetDbProperties().GetIntProp(DBProperties::INSTANCE_ID, 0); in CheckPermissions()
520 …SetSendConfigParam(syncInterface->GetDbProperties(), target, false, REMOTE_EXECUTOR_SEND_TIME_OUT,… in SendRequestMessage()
606 SetSendConfigParam(storage->GetDbProperties(), device, false, SEND_TIME_OUT, sendConfig); in ResponseStart()
H A Dgeneric_syncer.cpp450 …bool isSyncDualTupleMode = syncInterface->GetDbProperties().GetBoolProp(DBProperties::SYNC_DUAL_TU… in CheckSyncActive()
750 …bool isSyncDualTupleMode = syncInterface_->GetDbProperties().GetBoolProp(KvDBProperties::SYNC_DUAL… in GetOnlineDevices()
753 …identifier = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::DUAL_TUPLE_IDENTIFIER… in GetOnlineDevices()
756 … identifier = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::IDENTIFIER_DATA, ""); in GetOnlineDevices()
1093 … bool localOnly = syncInterface->GetDbProperties().GetBoolProp(KvDBProperties::LOCAL_ONLY, false); in IsNeedActive()
H A Dcommit_history_sync.cpp712 std::string appId = storagePtr_->GetDbProperties().GetStringProp(KvDBProperties::APP_ID, ""); in RunPermissionCheck()
713 std::string userId = storagePtr_->GetDbProperties().GetStringProp(KvDBProperties::USER_ID, ""); in RunPermissionCheck()
714 … std::string storeId = storagePtr_->GetDbProperties().GetStringProp(KvDBProperties::STORE_ID, ""); in RunPermissionCheck()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/
H A Dsqlite_local_kvdb.h64 const KvDBProperties &GetDbProperties() const;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Dvirtual_multi_ver_sync_db_interface.h95 const KvDBProperties &GetDbProperties() const override;
H A Dvirtual_relational_ver_sync_db_interface.h84 const RelationalDBProperties &GetDbProperties() const override;
H A Dvirtual_multi_ver_sync_db_interface.cpp228 const KvDBProperties &VirtualMultiVerSyncDBInterface::GetDbProperties() const in GetDbProperties() function in DistributedDB::VirtualMultiVerSyncDBInterface
H A Dvirtual_single_ver_sync_db_Interface.h101 const KvDBProperties &GetDbProperties() const override;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_natural_store.h102 const KvDBProperties &GetDbProperties() const override;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/
H A Dtime_helper.cpp144 SetSendConfigParam(storage_->GetDbProperties(), dstTarget, false, SEND_TIME_OUT, sendConf); in SetSendConfig()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store.h149 const KvDBProperties &GetDbProperties() const override;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_natural_store_extend.cpp317 needCompressOnSync = GetDbProperties().GetBoolProp(KvDBProperties::COMPRESS_ON_SYNC, false); in GetCompressionOption()
318 compressionRate = GetDbProperties().GetIntProp(KvDBProperties::COMPRESSION_RATE, in GetCompressionOption()
H A Dsqlite_single_ver_natural_store.h137 const KvDBProperties &GetDbProperties() const override;
H A Dsqlite_single_ver_natural_store.cpp262 bool isMemDb = GetDbProperties().GetBoolProp(KvDBProperties::MEMORY_MODE, false); in GetSecurityOption()
272 option.securityLabel = GetDbProperties().GetSecLabel(); in GetSecurityOption()
273 option.securityFlag = GetDbProperties().GetSecFlag(); in GetSecurityOption()
1735 const KvDBProperties &SQLiteSingleVerNaturalStore::GetDbProperties() const in GetDbProperties() function in DistributedDB::SQLiteSingleVerNaturalStore

12