Home
last modified time | relevance | path

Searched refs:whereClause (Results 1 - 11 of 11) sorted by relevance

/base/telephony/telephony_data/sim/src/
H A Drdb_sim_helper.cpp114 std::string whereClause; in SetDefaultCardByType() local
115 whereClause.append(SimData::SIM_ID).append("=").append(std::to_string(simId)); in SetDefaultCardByType()
116 result = Update(changedRows, TABLE_SIM_INFO, values, whereClause); in SetDefaultCardByType()
129 std::string whereClause; in UpdateCardStateByType() local
134 whereClause.append(SimData::IS_MAIN_CARD).append("=").append(std::to_string(whereSate)); in UpdateCardStateByType()
140 whereClause.append(SimData::IS_VOICE_CARD).append("=").append(std::to_string(whereSate)); in UpdateCardStateByType()
146 whereClause.append(SimData::IS_MESSAGE_CARD).append("=").append(std::to_string(whereSate)); in UpdateCardStateByType()
152 whereClause.append(SimData::IS_CELLULAR_DATA_CARD).append("=").append(std::to_string(whereSate)); in UpdateCardStateByType()
160 return Update(changedRows, TABLE_SIM_INFO, values, whereClause); in UpdateCardStateByType()
/base/telephony/telephony_data/common/src/
H A Drdb_base_helper.cpp47 const std::string &whereClause, const std::vector<std::string> &whereArgs) in Update()
51 ret = store_->Update(changedRows, table, values, whereClause, whereArgs); in Update()
66 int RdbBaseHelper::Delete(int &changedRows, const std::string &table, const std::string &whereClause, in Delete() argument
71 ret = store_->Delete(changedRows, table, whereClause, whereArgs); in Delete()
46 Update(int &changedRows, const std::string &table, const NativeRdb::ValuesBucket &values, const std::string &whereClause, const std::vector<std::string> &whereArgs) Update() argument
/base/usb/usb_manager/services/native/src/
H A Dusb_right_db_helper.cpp317 const std::string &whereClause, const std::vector<std::string> &whereArgs) in DeleteAndNoOtherOperation()
329 ret = rightDatabase_->Delete(changedRows, whereClause, whereArgs); in DeleteAndNoOtherOperation()
377 std::string whereClause = {"uid = ? AND deviceName = ? AND bundleName = ? AND tokenId = ?"}; in DeleteRightRecord() local
379 int32_t ret = DeleteAndNoOtherOperation(whereClause, whereArgs); in DeleteRightRecord()
389 std::string whereClause = {"uid = ? AND deviceName = ?"}; in DeleteDeviceRightRecord() local
391 int32_t ret = DeleteAndNoOtherOperation(whereClause, whereArgs); in DeleteDeviceRightRecord()
401 std::string whereClause = {"uid = ? AND bundleName = ?"}; in DeleteAppRightRecord() local
403 int32_t ret = DeleteAndNoOtherOperation(whereClause, whereArgs); in DeleteAppRightRecord()
425 std::string whereClause = {"uid = ?"}; in DeleteUidRightRecord() local
427 int32_t ret = DeleteAndNoOtherOperation(whereClause, whereArg in DeleteUidRightRecord()
316 DeleteAndNoOtherOperation( const std::string &whereClause, const std::vector<std::string> &whereArgs) DeleteAndNoOtherOperation() argument
437 std::string whereClause = {"uid = ? AND requestTime < ? AND validPeriod NOT IN (?, ?)"}; DeleteNormalExpiredRightRecord() local
454 std::string whereClause = {"validPeriod = ? AND deviceName = ?"}; DeleteValidPeriodRightRecord() local
[all...]
H A Dusb_right_database.cpp125 const std::string &whereClause, const std::vector<std::string> &whereArgs) in Update()
128 USB_HILOGE(MODULE_USB_SERVICE, "Update(whereClause) store_ is nullptr"); in Update()
131 int32_t ret = store_->Update(changedRows, USB_RIGHT_TABLE_NAME, values, whereClause, whereArgs); in Update()
133 USB_HILOGE(MODULE_USB_SERVICE, "Update(whereClause) ret :%{public}d", ret); in Update()
155 int32_t &changedRows, const std::string &whereClause, const std::vector<std::string> &whereArgs) in Delete()
161 int32_t ret = store_->Delete(changedRows, USB_RIGHT_TABLE_NAME, whereClause, whereArgs); in Delete()
163 USB_HILOGE(MODULE_USB_SERVICE, "Delete(whereClause) ret :%{public}d", ret); in Delete()
124 Update(int32_t &changedRows, const OHOS::NativeRdb::ValuesBucket &values, const std::string &whereClause, const std::vector<std::string> &whereArgs) Update() argument
154 Delete( int32_t &changedRows, const std::string &whereClause, const std::vector<std::string> &whereArgs) Delete() argument
/base/telephony/telephony_data/common/include/
H A Drdb_base_helper.h45 const std::string &whereClause = "",
48 int Delete(int &changedRows, const std::string &table, const std::string &whereClause = "",
/base/usb/usb_manager/services/native/include/
H A Dusb_right_database.h57 int32_t Update(int32_t &changedRows, const OHOS::NativeRdb::ValuesBucket &values, const std::string &whereClause,
60 int32_t Delete(int32_t &changedRows, const std::string &whereClause, const std::vector<std::string> &whereArgs);
H A Dusb_right_db_helper.h126 int32_t DeleteAndNoOtherOperation(const std::string &whereClause, const std::vector<std::string> &whereArgs);
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_repeat_db.cpp197 std::string whereClause = COLUMN_HAPPENTIME; in ClearHistory() local
198 whereClause.append(" < ").append(std::to_string(happentime)); in ClearHistory()
200 if (int32_t ret = dbStore_->Delete(deleteRows, TABLE_NAME, whereClause); ret != NativeRdb::E_OK) { in ClearHistory()
201 HIVIEW_LOGE("failed to delete, whereClause=%{public}s", whereClause.c_str()); in ClearHistory()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_share_dao.cpp77 std::string whereClause = "uid = ?"; in SaveSubscriberInfo() local
79 if (int ret = dbStore->Update(rows, eventTable_, values, whereClause, whereArgs); ret != NativeRdb::E_OK) { in SaveSubscriberInfo()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
H A Dapp_event_store.cpp536 std::string whereClause = "(SELECT COUNT(1) AS num FROM " + Events::TABLE + " WHERE " in DeleteUnusedParamsExceptCurId() local
540 if (dbStore_->Delete(deleteRows, CustomEventParams::TABLE, whereClause, std::vector<std::string>{curRunningId}) in DeleteUnusedParamsExceptCurId()
556 std::string whereClause = "(SELECT COUNT(1) AS num FROM " + Events::TABLE + " WHERE " in DeleteUnusedEventMapping() local
559 if (dbStore_->Delete(deleteRows, AppEventMapping::TABLE, whereClause) != NativeRdb::E_OK) { in DeleteUnusedEventMapping()
577 std::string whereClause in DeleteHistoryEvent() local
582 if (dbStore_->Delete(deleteRows, Events::TABLE, whereClause, whereArgs) != NativeRdb::E_OK) { in DeleteHistoryEvent()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_rdb_data_mgr_test/
H A Dnotification_rdb_data_mgr_test.cpp78 const std::string &whereClause = "", in Update()
84 const std::string &whereClause, const std::vector<std::string> &whereArgs, in UpdateWithConflictResolution()
90 const std::string &whereClause = "", const std::vector<ValueObject> &bindArgs = {}, in UpdateWithConflictResolution()
95 virtual int Delete(int &deletedRows, const std::string &table, const std::string &whereClause, in Delete() argument
100 virtual int Delete(int &deletedRows, const std::string &table, const std::string &whereClause = "", in Delete()
106 const std::vector<std::string> &columns, const std::string &whereClause = "", in Query()
83 UpdateWithConflictResolution(int &changedRows, const std::string &table, const ValuesBucket &values, const std::string &whereClause, const std::vector<std::string> &whereArgs, ConflictResolution conflictResolution) UpdateWithConflictResolution() argument

Completed in 8 milliseconds