Home
last modified time | relevance | path

Searched refs:rdbStore_ (Results 1 – 17 of 17) sorted by relevance

/base/notification/distributed_notification_service/services/ans/src/
Dnotification_rdb_data_mgr.cpp93 if (rdbStore_ != nullptr) { in Init()
112rdbStore_ = NativeRdb::RdbHelper::GetRdbStore(rdbStoreConfig, notificationRdbConfig_.version, in Init()
114 if (rdbStore_ == nullptr) { in Init()
128 if (rdbStore_ == nullptr) { in Destroy()
133 rdbStore_ = nullptr; in Destroy()
148 if (rdbStore_ == nullptr) { in InsertData()
158 int32_t ret = rdbStore_->InsertWithConflictResolution( in InsertData()
172 if (rdbStore_ == nullptr) { in InsertBatchData()
183 int32_t ret = rdbStore_->InsertWithConflictResolution( in InsertBatchData()
198 if (rdbStore_ == nullptr) { in DeleteData()
[all …]
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
Devent_db_helper.cpp57 EventDbHelper::EventDbHelper(const std::string workPath) : dbPath_(workPath), rdbStore_(nullptr) in EventDbHelper()
86 rdbStore_ = NativeRdb::RdbHelper::GetRdbStore(config, DB_VERSION, callback, ret); in InitDbStore()
87 if (ret != NativeRdb::E_OK || rdbStore_ == nullptr) { in InitDbStore()
98 if (rdbStore_ == nullptr) { in InsertPluginStatsEvent()
115 if (rdbStore_ == nullptr) { in InsertSysUsageEvent()
128 if (rdbStore_ == nullptr) { in QueryPluginStatsEvent()
153 if (rdbStore_ == nullptr) { in QuerySysUsageEvent()
172 if (rdbStore_ == nullptr) { in DeletePluginStatsEvent()
181 if (rdbStore_ == nullptr) { in DeleteSysUsageEvent()
192 if (rdbStore_->ExecuteSql(sql) != NativeRdb::E_OK) { in CreateTable()
[all …]
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/
Dohos_web_permission_data_base_adapter_impl.cpp104rdbStore_ = OhosWebPermissionDataBaseAdapterImpl::CreateDataBase(WEB_PERMISSION_DATABASE_FILE, cal… in OhosWebPermissionDataBaseAdapterImpl()
119 if (rdbStore_ == nullptr || origin.empty()) { in ExistPermissionByOrigin()
130 auto resultSet = rdbStore_->Query(dirAbsPred, columns); in ExistPermissionByOrigin()
142 if (rdbStore_ == nullptr || origin.empty()) { in GetPermissionResultByOrigin()
153 auto resultSet = rdbStore_->Query(dirAbsPred, columns); in GetPermissionResultByOrigin()
171 if (rdbStore_ == nullptr || origin.empty()) { in SetPermissionByOrigin()
184 errCode = rdbStore_->Insert(outRowId, tableName, valuesBucket); in SetPermissionByOrigin()
191 if (rdbStore_ == nullptr || origin.empty()) { in ClearPermissionByOrigin()
202 int32_t ret = rdbStore_->Delete(deletedRows, dirAbsPred); in ClearPermissionByOrigin()
208 if (rdbStore_ == nullptr) { in ClearAllPermission()
[all …]
Dohos_web_data_base_adapter_impl.cpp102 rdbStore_ = RdbHelper::GetRdbStore(config, RDB_VERSION, callBack, errCode); in OhosWebDataBaseAdapterImpl()
103 if (rdbStore_ == nullptr) { in OhosWebDataBaseAdapterImpl()
116 if (rdbStore_ == nullptr) { in SaveHttpAuthCredentials()
130 errCode = rdbStore_->Insert(outRowId, HTTPAUTH_TABLE_NAME, valuesBucket); in SaveHttpAuthCredentials()
145 if (rdbStore_ == nullptr) { in GetHttpAuthCredentials()
153 auto resultSet = rdbStore_->Query(dirAbsPred, columns); in GetHttpAuthCredentials()
181 if (rdbStore_ == nullptr) { in ExistHttpAuthCredentials()
187 if (rdbStore_->Count(outValue, dirAbsPred) != NativeRdb::E_OK) { in ExistHttpAuthCredentials()
200 if (rdbStore_ == nullptr) { in DeleteHttpAuthCredentials()
205 int32_t ret = rdbStore_->Delete(deletedRows, dirAbsPred); in DeleteHttpAuthCredentials()
Dohos_web_dns_data_base_adapter_impl.cpp58 if (instance.rdbStore_ == nullptr) { in GetInstance()
61 instance.rdbStore_ = instance.CreateDataBase(WEB_DNS_DATABASE_FILE, callBack); in GetInstance()
106 if (rdbStore_ == nullptr || hostname.empty()) { in ExistHostname()
127 if (rdbStore_ == nullptr || hostname.empty()) { in InsertHostname()
136 errCode = rdbStore_->Insert(outRowId, DNS_TABLE_NAME, valuesBucket); in InsertHostname()
142 if (rdbStore_ == nullptr) { in GetHostnames()
148 auto resultSet = rdbStore_->Query(dirAbsPred, columns); in GetHostnames()
164 if (rdbStore_ == nullptr) { in ClearAllHostname()
170 int32_t ret = rdbStore_->Delete(deletedRows, dirAbsPred); in ClearAllHostname()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_store.cpp80rdbStore_ = NativeRdb::RdbHelper::GetRdbStore(config_, REMINDER_RDB_VERSION, rdbDataCallBack_, err… in Init()
81 if (rdbStore_ == nullptr) { in Init()
91 if (rdbStore_ == nullptr) { in InitData()
101 int32_t statusResult = rdbStore_->Update(statusChangedRows, REMINDER_DB_TABLE, statusValues); in InitData()
113 int32_t activeResult = rdbStore_->Update( in InitData()
126 int32_t scheduledResult = rdbStore_->Update( in InitData()
158 if (rdbStore_ == nullptr) { in Delete()
164 int32_t result = rdbStore_->Delete(deletedRows, REMINDER_DB_TABLE, deleteCondition, whereArgs); in Delete()
182 if (rdbStore_ == nullptr) { in UpdateOrInsert()
201 if (rdbStore_ == nullptr) { in Insert()
[all …]
/base/customization/enterprise_device_management/services/edm/src/database/
Dedm_rdb_data_manager.cpp23 std::shared_ptr<NativeRdb::RdbStore> EdmRdbDataManager::rdbStore_ = nullptr; member in OHOS::EDM::EdmRdbDataManager
41 if (rdbStore_ == nullptr) { in GetRdbStore()
43 if (rdbStore_ == nullptr) { in GetRdbStore()
48rdbStore_ = NativeRdb::RdbHelper::GetRdbStore(rdbStoreConfig, EdmRdbFiledConst::EDM_RDB_VERSION, in GetRdbStore()
52 return rdbStore_; in GetRdbStore()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/
Dnotification_rdb_data_mgr_test.cpp374 notificationDataMgr->rdbStore_ = std::make_shared<RdbStoreTest>();
388 notificationDataMgr->rdbStore_ = nullptr;
404 notificationDataMgr->rdbStore_ = std::make_shared<RdbStoreTest>();
420 notificationDataMgr->rdbStore_ = nullptr;
435 notificationDataMgr->rdbStore_ = std::make_shared<RdbStoreTest>();
457 notificationDataMgr->rdbStore_ = nullptr;
472 notificationDataMgr->rdbStore_ = std::make_shared<RdbStoreTest>();
487 notificationDataMgr->rdbStore_ = nullptr;
502 notificationDataMgr->rdbStore_ = std::make_shared<RdbStoreTest>();
519 notificationDataMgr->rdbStore_ = nullptr;
[all …]
/base/telephony/telephony_data/entry/src/main/ets/DataShareExtAbility/
DDataShareExtAbility.ts19 private rdbStore_; property in DataShareExtAbility
/base/customization/enterprise_device_management/services/edm/include/database/
Dedm_rdb_data_manager.h36 static std::shared_ptr<NativeRdb::RdbStore> rdbStore_; variable
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/include/
Dohos_web_data_base_adapter_impl.h61 std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore_; variable
Dohos_web_dns_data_base_adapter_impl.h62 std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore_; variable
Dohos_web_permission_data_base_adapter_impl.h69 std::shared_ptr<OHOS::NativeRdb::RdbStore> rdbStore_; variable
/base/web/webview/test/unittest/ohos_adapter/web_data_base_adapter_impl_test/
Dweb_data_base_adapter_impl_test.cpp153 EXPECT_NE(dataBase.rdbStore_, nullptr);
172 EXPECT_NE(dataBase.rdbStore_, nullptr);
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
Devent_db_helper.h56 std::shared_ptr<NativeRdb::RdbStore> rdbStore_; variable
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_rdb_data_mgr.h120 std::shared_ptr<NativeRdb::RdbStore> rdbStore_; variable
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_store.h79 std::shared_ptr<NativeRdb::RdbStore> rdbStore_ = nullptr;