/base/notification/distributed_notification_service/services/ans/src/ |
D | notification_rdb_data_mgr.cpp | 38 int32_t RdbStoreDataCallBackNotificationStorage::OnCreate(NativeRdb::RdbStore &rdbStore) in OnCreate() 41 int ret = NativeRdb::E_OK; in OnCreate() 48 if (ret == NativeRdb::E_OK) { in OnCreate() 56 NativeRdb::RdbStore &rdbStore, int32_t oldVersion, int32_t newVersion) in OnUpgrade() 60 return NativeRdb::E_OK; in OnUpgrade() 64 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() 68 return NativeRdb::E_OK; in OnDowngrade() 71 int32_t RdbStoreDataCallBackNotificationStorage::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 74 return NativeRdb::E_OK; in OnOpen() 79 return NativeRdb::E_OK; in onCorruption() [all …]
|
/base/update/updateservice/services/core/ability/sqlite/core/src/ |
D | sqlite_db.cpp | 29 std::shared_ptr<NativeRdb::RdbStore> SqliteDb::GetDbStore() in GetDbStore() 40 std::shared_ptr<NativeRdb::RdbStore> SqliteDb::CreateDbStore() in CreateDbStore() 45 NativeRdb::RdbStoreConfig config(dbStoreDir); in CreateDbStore() 46 config.SetSecurityLevel(NativeRdb::SecurityLevel::S1); in CreateDbStore() 47 int ret = NativeRdb::E_OK; in CreateDbStore() 48 std::shared_ptr<NativeRdb::RdbStore> dbStore = in CreateDbStore() 49 NativeRdb::RdbHelper::GetRdbStore(config, GetDbVersion(), GetDbOpenCallback(), ret); in CreateDbStore() 50 if (ret != NativeRdb::E_OK || dbStore == nullptr) { in CreateDbStore() 60 int ret = NativeRdb::RdbHelper::DeleteRdbStore(GetDbStoreDir()); in DeleteDbStore() 63 return ret == NativeRdb::E_OK; in DeleteDbStore() [all …]
|
/base/telephony/telephony_data/common/src/ |
D | rdb_base_helper.cpp | 30 namespace NativeRdb { namespace 38 int RdbBaseHelper::Insert(int64_t &id, const NativeRdb::ValuesBucket &initialValues, const std::str… in Insert() 41 if (ret == NativeRdb::E_OK) { in Insert() 47 int RdbBaseHelper::Update(int &changedRows, const std::string &table, const NativeRdb::ValuesBucket… in Update() 51 if (ret == NativeRdb::E_OK) { in Update() 57 int RdbBaseHelper::Update(int &changedRows, const NativeRdb::ValuesBucket &values, in Update() 58 const NativeRdb::AbsRdbPredicates &predicate) in Update() 61 if (ret == NativeRdb::E_OK) { in Update() 71 if (ret == NativeRdb::E_OK) { in Delete() 77 int RdbBaseHelper::Delete(int &deletedRows, const NativeRdb::AbsRdbPredicates &predicates) in Delete() [all …]
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/ |
D | mock_notification_rdb_data_mgr.cpp | 67 return NativeRdb::E_ERROR; in Init() 69 return NativeRdb::E_OK; in Init() 75 return NativeRdb::E_EMPTY_VALUES_BUCKET; in QueryData() 77 return NativeRdb::E_ERROR; in QueryData() 83 return NativeRdb::E_ERROR; in InsertData() 85 return NativeRdb::E_OK; in InsertData() 91 return NativeRdb::E_ERROR; in InsertBatchData() 93 return NativeRdb::E_OK; in InsertBatchData() 100 return NativeRdb::E_ERROR; in QueryDataBeginWithKey() 102 return NativeRdb::E_OK; in QueryDataBeginWithKey() [all …]
|
/base/telephony/telephony_data/opkey/src/ |
D | rdb_opkey_callback.cpp | 29 int RdbOpKeyCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) in OnUpgrade() 35 return NativeRdb::E_OK; in OnUpgrade() 38 int RdbOpKeyCallback::OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVers… in OnDowngrade() 44 return NativeRdb::E_OK; in OnDowngrade() 47 int RdbOpKeyCallback::OnCreate(NativeRdb::RdbStore &rdbStore) in OnCreate() 52 return NativeRdb::E_OK; in OnCreate() 55 int RdbOpKeyCallback::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 58 return NativeRdb::E_OK; in OnOpen() 61 void RdbOpKeyCallback::InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName) in InitData() 70 NativeRdb::ValuesBucket value; in InitData() [all …]
|
/base/usb/usb_manager/services/native/include/ |
D | usb_right_database.h | 53 int64_t Insert(const OHOS::NativeRdb::ValuesBucket &insertValues); 54 int32_t Update(int32_t &changedRows, const OHOS::NativeRdb::ValuesBucket &values, 55 const OHOS::NativeRdb::RdbPredicates &predicates); 56 …int32_t Update(int32_t &changedRows, const OHOS::NativeRdb::ValuesBucket &values, const std::strin… 58 int32_t Delete(const OHOS::NativeRdb::RdbPredicates &rdbPredicates); 61 …const std::vector<OHOS::NativeRdb::ValueObject> &bindArgs = std::vector<OHOS::NativeRdb::ValueObje… 62 std::shared_ptr<OHOS::NativeRdb::ResultSet> QuerySql( 64 std::shared_ptr<OHOS::NativeRdb::ResultSet> Query( 65 … const OHOS::NativeRdb::AbsRdbPredicates &predicates, const std::vector<std::string> &columns); 75 std::shared_ptr<OHOS::NativeRdb::RdbStore> store_; [all …]
|
/base/telephony/telephony_data/pdp_profile/src/ |
D | rdb_pdp_profile_callback.cpp | 28 int RdbPdpProfileCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) in OnUpgrade() 31 return NativeRdb::E_OK; in OnUpgrade() 34 int RdbPdpProfileCallback::OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targe… in OnDowngrade() 40 return NativeRdb::E_OK; in OnDowngrade() 43 int RdbPdpProfileCallback::OnCreate(NativeRdb::RdbStore &rdbStore) in OnCreate() 47 return NativeRdb::E_OK; in OnCreate() 50 int RdbPdpProfileCallback::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 53 return NativeRdb::E_OK; in OnOpen() 56 void RdbPdpProfileCallback::InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName) in InitData() 65 NativeRdb::ValuesBucket value; in InitData()
|
/base/telephony/telephony_data/sms_mms/src/ |
D | rdb_sms_mms_callback.cpp | 22 namespace NativeRdb { namespace 26 int RdbSmsMmsCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) in OnUpgrade() 32 return NativeRdb::E_OK; in OnUpgrade() 35 int RdbSmsMmsCallback::OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVer… in OnDowngrade() 41 return NativeRdb::E_OK; in OnDowngrade() 44 int RdbSmsMmsCallback::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 46 return NativeRdb::E_OK; in OnOpen()
|
/base/telephony/telephony_data/sim/src/ |
D | rdb_sim_callback.cpp | 22 namespace NativeRdb { namespace 26 int RdbSimCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) in OnUpgrade() 32 return NativeRdb::E_OK; in OnUpgrade() 35 int RdbSimCallback::OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersio… in OnDowngrade() 41 return NativeRdb::E_OK; in OnDowngrade() 44 int RdbSimCallback::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 46 return NativeRdb::E_OK; in OnOpen()
|
/base/customization/enterprise_device_management/services/edm/src/database/ |
D | edm_rdb_data_manager.cpp | 23 std::shared_ptr<NativeRdb::RdbStore> EdmRdbDataManager::rdbStore_ = nullptr; 38 std::shared_ptr<NativeRdb::RdbStore> EdmRdbDataManager::GetRdbStore() in GetRdbStore() 44 NativeRdb::RdbStoreConfig rdbStoreConfig(EdmRdbFiledConst::EDM_SERVICE_DATABASE_PATH + in GetRdbStore() 46 int32_t errCode = NativeRdb::E_OK; in GetRdbStore() 48 … rdbStore_ = NativeRdb::RdbHelper::GetRdbStore(rdbStoreConfig, EdmRdbFiledConst::EDM_RDB_VERSION, in GetRdbStore() 68 if (ret != NativeRdb::E_OK) { in CreateTable() 75 bool EdmRdbDataManager::Insert(const std::string &tableName, const NativeRdb::ValuesBucket &valuesB… in Insert() 85 NativeRdb::ConflictResolution::ON_CONFLICT_REPLACE); in Insert() 86 return ret == NativeRdb::E_OK; in Insert() 89 bool EdmRdbDataManager::Delete(const NativeRdb::AbsRdbPredicates &predicates) in Delete() [all …]
|
/base/telephony/telephony_data/common/include/ |
D | rdb_base_helper.h | 28 namespace NativeRdb { 42 int Insert(int64_t &id, const NativeRdb::ValuesBucket &initialValues, const std::string &table); 43 …int BatchInsert(int64_t &id, const NativeRdb::ValuesBucket &initialValues, const std::string &tabl… 44 int Update(int &changedRows, const std::string &table, const NativeRdb::ValuesBucket &values, 47 …int Update(int &changedRows, const NativeRdb::ValuesBucket &values, const NativeRdb::AbsRdbPredica… 50 int Delete(int &deletedRows, const NativeRdb::AbsRdbPredicates &predicates); 51 std::shared_ptr<NativeRdb::ResultSet> QuerySql( 53 std::shared_ptr<NativeRdb::ResultSet> Query( 54 const NativeRdb::AbsRdbPredicates &predicates, const std::vector<std::string> columns); 56 int ExecuteSql(const std::string &sql, const std::vector<NativeRdb::ValueObject> &bindArgs); [all …]
|
/base/update/updateservice/services/core/ability/sqlite/core/include/ |
D | sqlite_db.h | 36 …bool Insert(const std::string &tableName, const std::vector<NativeRdb::ValuesBucket> &values) fina… 37 bool Delete(int32_t &deletedRows, const NativeRdb::RdbPredicates &predicates) final; 38 std::shared_ptr<NativeRdb::ResultSet> Query( 39 const NativeRdb::RdbPredicates &predicates, const std::vector<std::string> &columns) final; 41 …int &changedRows, const NativeRdb::ValuesBucket &values, const NativeRdb::RdbPredicates &predicate… 48 virtual NativeRdb::RdbOpenCallback &GetDbOpenCallback() = 0; 51 std::shared_ptr<NativeRdb::RdbStore> GetDbStore(); 52 std::shared_ptr<NativeRdb::RdbStore> CreateDbStore(); 55 std::shared_ptr<NativeRdb::RdbStore> dbStore_ = nullptr;
|
D | idatabase.h | 31 …virtual bool Insert(const std::string &tableName, const std::vector<NativeRdb::ValuesBucket> &valu… 32 virtual bool Delete(int32_t &deletedRows, const NativeRdb::RdbPredicates &predicates) = 0; 33 virtual std::shared_ptr<NativeRdb::ResultSet> Query( 34 const NativeRdb::RdbPredicates &predicates, const std::vector<std::string> &columns) = 0; 36 …int &changedRows, const NativeRdb::ValuesBucket &values, const NativeRdb::RdbPredicates &predicate…
|
D | table_base_operator.h | 41 bool Delete(const NativeRdb::RdbPredicates &predicates); 42 bool Delete(int32_t &deletedRows, const NativeRdb::RdbPredicates &predicates) final; 44 bool Query(std::vector<T> &results, const NativeRdb::RdbPredicates &predicates) final; 45 bool Update(const NativeRdb::ValuesBucket &values, const NativeRdb::RdbPredicates &predicate); 47 …int &changedRows, const NativeRdb::ValuesBucket &values, const NativeRdb::RdbPredicates &predicate… 74 std::vector<NativeRdb::ValuesBucket> dbValues; in Insert() 92 NativeRdb::RdbPredicates predicates(GetTableName()); in DeleteAll() 97 bool TableBaseOperator<Table, T>::Delete(const NativeRdb::RdbPredicates &predicates) in Delete() 104 bool TableBaseOperator<Table, T>::Delete(int32_t &deletedRows, const NativeRdb::RdbPredicates &pred… in Delete() 114 OHOS::NativeRdb::RdbPredicates predicates(GetTableName()); in DeleteById() [all …]
|
/base/request/request/services/service/rust/src/c_wrapper/include/ |
D | c_request_database.h | 88 bool Insert(const std::string &table, const OHOS::NativeRdb::ValuesBucket &insertValues); 89 …bool Update(const OHOS::NativeRdb::ValuesBucket values, const OHOS::NativeRdb::AbsRdbPredicates &p… 90 …std::shared_ptr<OHOS::NativeRdb::ResultSet> Query(const OHOS::NativeRdb::AbsRdbPredicates &predica… 100 std::shared_ptr<OHOS::NativeRdb::RdbStore> store_; 103 class RequestDBOpenCallback : public OHOS::NativeRdb::RdbOpenCallback { 105 int OnCreate(OHOS::NativeRdb::RdbStore &rdbStore) override; 106 int OnUpgrade(OHOS::NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) override; 107 …int OnDowngrade(OHOS::NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) overri… 126 void GetCommonTaskInfo(std::shared_ptr<OHOS::NativeRdb::ResultSet> resultSet, TaskInfo &taskInfo); 127 int TouchRequestTaskInfo(const OHOS::NativeRdb::RdbPredicates &rdbPredicates, TaskInfo &taskInfo, [all …]
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
D | data_share_store.cpp | 39 int DataShareStoreCallback::OnCreate(NativeRdb::RdbStore &rdbStore) in OnCreate() 46 if (int ret = rdbStore.ExecuteSql(sql); ret != NativeRdb::E_OK) { in OnCreate() 50 return NativeRdb::E_OK; in OnCreate() 53 int DataShareStoreCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) in OnUpgrade() 56 return NativeRdb::E_OK; in OnUpgrade() 59 std::shared_ptr<NativeRdb::RdbStore> DataShareStore::GetDbStore() in GetDbStore() 78 if (int ret = dbStore->ExecuteSql(sql); ret != NativeRdb::E_OK) { in DropTable() 85 std::shared_ptr<NativeRdb::RdbStore> DataShareStore::CreateDbStore() in CreateDbStore() 95 int ret = NativeRdb::E_OK; in CreateDbStore() 96 NativeRdb::RdbStoreConfig config(dirPath_ + DATABASE_NAME); in CreateDbStore() [all …]
|
/base/usb/usb_manager/services/native/src/ |
D | usb_right_database.cpp | 29 int32_t errCode = OHOS::NativeRdb::E_OK; in UsbRightDataBase() 30 OHOS::NativeRdb::RdbStoreConfig config(rightDatabaseName); in UsbRightDataBase() 31 config.SetSecurityLevel(NativeRdb::SecurityLevel::S1); in UsbRightDataBase() 33 …store_ = OHOS::NativeRdb::RdbHelper::GetRdbStore(config, DATABASE_OPEN_VERSION, sqliteOpenHelperCa… in UsbRightDataBase() 34 if (errCode != OHOS::NativeRdb::E_OK) { in UsbRightDataBase() 58 if (ret != OHOS::NativeRdb::E_OK) { in BeginTransaction() 72 if (ret != OHOS::NativeRdb::E_OK) { in Commit() 86 if (ret != OHOS::NativeRdb::E_OK) { in RollBack() 93 int64_t UsbRightDataBase::Insert(const OHOS::NativeRdb::ValuesBucket &insertValues) in Insert() 102 if (ret != OHOS::NativeRdb::E_OK) { in Insert() [all …]
|
/base/customization/enterprise_device_management/services/edm/include/database/ |
D | edm_rdb_data_manager.h | 29 bool Insert(const std::string &tableName, const NativeRdb::ValuesBucket &valuesBucket); 30 bool Delete(const NativeRdb::AbsRdbPredicates &predicates); 31 …bool Update(const NativeRdb::ValuesBucket &valuesBucket, const NativeRdb::AbsRdbPredicates &predic… 32 std::shared_ptr<NativeRdb::ResultSet> Query(const NativeRdb::AbsRdbPredicates &predicates, 35 static std::shared_ptr<NativeRdb::RdbStore> GetRdbStore(); 36 static std::shared_ptr<NativeRdb::RdbStore> rdbStore_;
|
/base/telephony/telephony_data/opkey/include/ |
D | rdb_opkey_callback.h | 24 namespace NativeRdb { 33 int OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) override; 34 int OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override; 35 int OnCreate(NativeRdb::RdbStore &rdbStore) override; 36 int OnOpen(NativeRdb::RdbStore &rdbStore) override; 39 void InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName); 40 int ClearData(NativeRdb::RdbStore &rdbStore);
|
/base/update/updateservice/services/firmware/data/db/src/ |
D | firmware_database_callback.cpp | 28 int FirmwareDatabaseCallback::OnCreate(NativeRdb::RdbStore &rdbStore) in OnCreate() 33 if (ret != NativeRdb::E_OK) { in OnCreate() 39 return NativeRdb::E_OK; in OnCreate() 42 int FirmwareDatabaseCallback::OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersi… in OnUpgrade() 46 return NativeRdb::E_OK; in OnUpgrade() 49 int FirmwareDatabaseCallback::OnOpen(NativeRdb::RdbStore &rdbStore) in OnOpen() 52 return NativeRdb::E_OK; in OnOpen()
|
D | firmware_task_operator.cpp | 40 NativeRdb::ValuesBucket values; in UpdateProgressByTaskId() 48 NativeRdb::ValuesBucket values; in UpdateErrMsgByTaskId() 56 NativeRdb::ValuesBucket values; in UpdateDownloadTaskIdByTaskId() 64 NativeRdb::ValuesBucket values; in UpdateCombinationTypeByTaskId() 71 NativeRdb::ValuesBucket values; in UpdateDownloadModeByTaskId() 78 NativeRdb::ValuesBucket values; in UpdateDownloadAllowNetworkByTaskId() 85 NativeRdb::ValuesBucket values; in UpdateDownloadOrderByTaskId() 93 NativeRdb::ValuesBucket values; in UpdateDownloadOptionByTaskId() 102 NativeRdb::ValuesBucket values; in UpdateUpgradeModeByTaskId() 109 NativeRdb::ValuesBucket values; in UpdateUpgradeOrderByTaskId() [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | event_db_helper.cpp | 39 class EventDbStoreCallback : public NativeRdb::RdbOpenCallback { 41 int OnCreate(NativeRdb::RdbStore &rdbStore) override; 42 int OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) override; 45 int EventDbStoreCallback::OnCreate(NativeRdb::RdbStore& rdbStore) in OnCreate() 48 return NativeRdb::E_OK; in OnCreate() 51 int EventDbStoreCallback::OnUpgrade(NativeRdb::RdbStore& rdbStore, int oldVersion, int newVersion) in OnUpgrade() 54 return NativeRdb::E_OK; in OnUpgrade() 82 NativeRdb::RdbStoreConfig config(dbPath_); in InitDbStore() 83 config.SetSecurityLevel(NativeRdb::SecurityLevel::S1); in InitDbStore() 85 int ret = NativeRdb::E_OK; in InitDbStore() [all …]
|
/base/telephony/telephony_data/pdp_profile/include/ |
D | rdb_pdp_profile_callback.h | 24 namespace NativeRdb { 33 int OnUpgrade(NativeRdb::RdbStore &rdbStore, int oldVersion, int newVersion) override; 34 int OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override; 35 int OnCreate(NativeRdb::RdbStore &rdbStore) override; 36 int OnOpen(NativeRdb::RdbStore &rdbStore) override; 39 void InitData(NativeRdb::RdbStore &rdbStore, const std::string &tableName);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/ |
D | notification_rdb_data_mgr_test.cpp | 36 using namespace OHOS::NativeRdb; 51 return NativeRdb::E_ERROR; in Insert() 56 return NativeRdb::E_ERROR; in BatchInsert() 60 return NativeRdb::E_ERROR; in Replace() 66 return NativeRdb::E_ERROR; in InsertWithConflictResolution() 72 return NativeRdb::E_ERROR; in Update() 78 return NativeRdb::E_ERROR; 84 return NativeRdb::E_ERROR; in UpdateWithConflictResolution() 90 return NativeRdb::E_ERROR; 95 return NativeRdb::E_ERROR; in Delete() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/ |
D | app_event_store.cpp | 68 int AppEventStoreCallback::OnCreate(NativeRdb::RdbStore& rdbStore) in OnCreate() 74 if (int ret = rdbStore.ExecuteSql(sql); ret != NativeRdb::E_OK) { in OnCreate() 78 return NativeRdb::E_OK; in OnCreate() 81 int AppEventStoreCallback::OnUpgrade(NativeRdb::RdbStore& rdbStore, int oldVersion, int newVersion) in OnUpgrade() 84 return NativeRdb::E_OK; in OnUpgrade() 87 std::shared_ptr<NativeRdb::RdbStore> AppEventStore::GetDbStore() in GetDbStore() 121 if (int ret = dbStore->ExecuteSql(sql); ret != NativeRdb::E_OK) { in CreateBlockTable() 138 if (int ret = dbStore->ExecuteSql(sql); ret != NativeRdb::E_OK) { in DropBlockTable() 146 std::shared_ptr<NativeRdb::RdbStore> AppEventStore::CreateDbStore() in CreateDbStore() 157 int ret = NativeRdb::E_OK; in CreateDbStore() [all …]
|