/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | abs_predicates.cpp | 80 bindArgs.push_back(std::move(valObj));
in EqualTo() 98 bindArgs.push_back(value);
in NotEqualTo() 148 bindArgs.push_back(ValueObject("%" + value + "%"));
in Contains() 162 bindArgs.push_back(ValueObject("%" + value + "%"));
in NotContains() 176 bindArgs.push_back(ValueObject(value + "%"));
in BeginsWith() 190 bindArgs.push_back(ValueObject("%" + value));
in EndsWith() 230 bindArgs.push_back(ValueObject(value));
in Like() 244 bindArgs.push_back(ValueObject(value));
in NotLike() 258 bindArgs.push_back(ValueObject(value));
in Glob() 273 bindArgs in Between() 458 std::vector<ValueObject> bindArgs; In() local 483 std::vector<ValueObject> bindArgs; NotIn() local 608 SetBindArgs(const std::vector<ValueObject> &bindArgs) SetBindArgs() argument [all...] |
H A D | rdb_store_impl.cpp | 958 std::vector<ValueObject> bindArgs; in Insert() local 959 bindArgs.reserve(bindArgsSize); in Insert() 967 bindArgs.push_back(val); // columnValue in Insert() 978 auto errCode = ExecuteForLastInsertedRowId(rowid, sql, bindArgs); in Insert() 1011 for (const auto &[sql, bindArgs] : executeSqlArgs) { in BatchInsert() 1016 for (const auto &args : bindArgs) { in BatchInsert() 1024 bindArgs.size(), table.c_str(), sql.c_str()); in BatchInsert() 1113 std::shared_ptr<AbsSharedResultSet> RdbStoreImpl::QuerySql(const std::string &sql, const Values &bindArgs) in QuerySql() argument 1122 return std::make_shared<SqliteSharedResultSet>(start, connectionPool_->AcquireRef(true), sql, bindArgs, path_); in QuerySql() 1125 (void)bindArgs; in QuerySql() 1465 std::vector<ValueObject> bindArgs; CreateBackupBindArgs() local 1514 std::vector<ValueObject> bindArgs = CreateBackupBindArgs(databasePath, destEncryptKey); InnerBackup() local 1654 std::vector<ValueObject> bindArgs; AttachInner() local 1739 std::vector<ValueObject> bindArgs; Detach() local 1912 ExecuteByTrxId(const std::string &sql, int64_t trxId, bool closeConnAfterExecute, const std::vector<ValueObject> &bindArgs) ExecuteByTrxId() argument [all...] |
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/ |
H A D | photo_album_clone.cpp | 25 std::string PhotoAlbumClone::ToString(const std::vector<NativeRdb::ValueObject> &bindArgs)
in ToString() argument 28 for (auto &arg : bindArgs) {
in ToString() 60 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotoAlbumInOriginalDb() local 65 auto resultSet = this->mediaLibraryOriginalRdb_->QuerySql(querySql, bindArgs);
in GetPhotoAlbumInOriginalDb() 67 MEDIA_ERR_LOG("Failed to query album! querySql = %{public}s, bindArgs = %{public}s",
in GetPhotoAlbumInOriginalDb() 69 this->ToString(bindArgs).c_str());
in GetPhotoAlbumInOriginalDb()
|
H A D | photo_album_dao.cpp | 41 std::vector<NativeRdb::ValueObject> bindArgs = {albumName, lPath};
in CheckAlbumNameUnique() local 47 auto resultSet = this->mediaLibraryRdb_->QuerySql(querySql, bindArgs);
in CheckAlbumNameUnique() 98 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotoAlbums() local 103 auto resultSet = this->mediaLibraryRdb_->QuerySql(querySql, bindArgs);
in GetPhotoAlbums() 141 std::vector<NativeRdb::ValueObject> bindArgs = {lPath};
in GetPhotoAlbum() local 147 auto resultSet = this->mediaLibraryRdb_->QuerySql(querySql, bindArgs);
in GetPhotoAlbum() 181 std::vector<NativeRdb::ValueObject> bindArgs = {
in GetOrCreatePhotoAlbum() local 187 auto err = this->mediaLibraryRdb_->ExecuteSql(this->SQL_PHOTO_ALBUM_INSERT, bindArgs);
in GetOrCreatePhotoAlbum() 198 std::string PhotoAlbumDao::ToString(const std::vector<NativeRdb::ValueObject> &bindArgs)
in ToString() argument 201 for (auto &arg : bindArgs) {
in ToString() 225 std::vector<NativeRdb::ValueObject> bindArgs = { RestoreAlbums() local [all...] |
H A D | db_upgrade_utils.cpp | 31 std::vector<NativeRdb::ValueObject> bindArgs = {tableName};
in IsTableExists() local 32 auto resultSet = store.QuerySql(querySql, bindArgs);
in IsTableExists() 50 std::vector<NativeRdb::ValueObject> bindArgs = {tableName, columnName};
in IsColumnExists() local 51 auto resultSet = store.QuerySql(querySql, bindArgs);
in IsColumnExists()
|
H A D | photos_clone.cpp | 83 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotosInPhotoMap() local 88 return this->mediaLibraryOriginalRdb_->QuerySql(this->SQL_PHOTOS_TABLE_QUERY_IN_PHOTO_MAP, bindArgs);
in GetPhotosInPhotoMap() 96 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotosNotInPhotoMap() local 101 return this->mediaLibraryOriginalRdb_->QuerySql(this->SQL_PHOTOS_TABLE_QUERY_NOT_IN_PHOTO_MAP, bindArgs);
in GetPhotosNotInPhotoMap() 188 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in FindDuplicateBurstKey() local 193 auto resultSet = this->mediaLibraryTargetRdb_->QuerySql(querySql, bindArgs);
in FindDuplicateBurstKey() 255 std::vector<NativeRdb::ValueObject> bindArgs = {burstKeyNew, info.ownerAlbumId, info.burstKey};
in FixDuplicateBurstKeyInDifferentAlbum() local 256 MEDIA_INFO_LOG("Media_Restore: executeSql = %{public}s, bindArgs=%{public}s",
in FixDuplicateBurstKeyInDifferentAlbum() 258 this->ToString(bindArgs).c_str());
in FixDuplicateBurstKeyInDifferentAlbum() 263 int32_t ret = this->mediaLibraryTargetRdb_->ExecuteSql(executeSql, bindArgs);
in FixDuplicateBurstKeyInDifferentAlbum() [all...] |
H A D | tab_old_photos_restore.cpp | 36 std::vector<NativeRdb::ValueObject> bindArgs = { fileInfo.fileIdOld, fileInfo.oldPath, fileInfo.cloudPath}; in Restore() local 37 int32_t ret = rdbStorePtr->ExecuteSql(executeSql, bindArgs); in Restore() 40 "executeSql=%{public}s, bindArgs: %{public}s, Object: %{public}s", in Restore() 43 this->ToString(bindArgs).c_str(), in Restore()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_callback_test/include/ |
H A D | rdbstore_mock.h | 49 const std::string &whereClause, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 61 const std::vector<OHOS::Media::ValueObject> &bindArgs, 73 const std::vector<OHOS::Media::ValueObject> &bindArgs)); 75 MOCK_METHOD2(ExecuteSql, int(const std::string &sql, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 78 int(int64_t &outValue, const std::string &sql, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 81 int(std::string &outValue, const std::string &sql, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 84 int(int64_t &outValue, const std::string &sql, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 87 int(int64_t &outValue, const std::string &sql, const std::vector<OHOS::Media::ValueObject> &bindArgs)); 102 const std::string &whereClause, const std::vector<OHOS::Media::ValueObject> &bindArgs, 110 const std::vector<OHOS::Media::ValueObject> &bindArgs)); [all...] |
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/ |
H A D | rdb_assistant.h | 57 const std::vector<ValueObject> &bindArgs));
72 const std::vector<ValueObject> &bindArgs,
85 const std::vector<ValueObject> &bindArgs));
87 MOCK_METHOD2(ExecuteSql, int(const std::string &sql, const std::vector<ValueObject> &bindArgs));
90 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs));
93 int(std::string &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs));
96 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs));
99 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs));
116 const std::vector<ValueObject> &bindArgs,
127 const std::vector<ValueObject> &bindArgs));
[all...] |
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/include/ |
H A D | clouddisk_rdbstore_mock.h | 57 const std::vector<ValueObject> &bindArgs)); 72 const std::vector<ValueObject> &bindArgs, 85 const std::vector<ValueObject> &bindArgs)); 87 MOCK_METHOD2(ExecuteSql, int(const std::string &sql, const std::vector<ValueObject> &bindArgs)); 90 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 93 int(std::string &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 96 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 99 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 117 const std::vector<ValueObject> &bindArgs, 128 const std::vector<ValueObject> &bindArgs)); [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/ |
H A D | rdb_store_mock.h | 57 const std::vector<ValueObject> &bindArgs)); 72 const std::vector<ValueObject> &bindArgs, 85 const std::vector<ValueObject> &bindArgs)); 87 MOCK_METHOD2(ExecuteSql, int(const std::string &sql, const std::vector<ValueObject> &bindArgs)); 90 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 93 int(std::string &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 96 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 99 int(int64_t &outValue, const std::string &sql, const std::vector<ValueObject> &bindArgs)); 116 const std::vector<ValueObject> &bindArgs, 127 const std::vector<ValueObject> &bindArgs)); [all...] |
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/ |
H A D | mock_rdb.h | 35 MOCK_METHOD(int, ExecuteSql, (const std::string& sql, const std::vector<ValueObject>& bindArgs), (override)); 48 const std::vector<ValueObject>& bindArgs), 76 const std::vector<ValueObject>& bindArgs) override 87 const std::string& whereClause, const std::vector<ValueObject>& bindArgs, 95 const std::vector<ValueObject>& bindArgs, const std::string& groupBy, const std::string& indexName, 115 std::shared_ptr<ResultSet> QueryByStep(const std::string& sql, const std::vector<ValueObject>& bindArgs) override 120 int ExecuteAndGetLong(int64_t& outValue, const std::string& sql, const std::vector<ValueObject>& bindArgs) override 125 std::string& outValue, const std::string& sql, const std::vector<ValueObject>& bindArgs) override 130 int64_t& outValue, const std::string& sql, const std::vector<ValueObject>& bindArgs) override 135 int64_t& outValue, const std::string& sql, const std::vector<ValueObject>& bindArgs) overrid [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/ |
H A D | mock_app_provision_info.h | 54 const std::vector<ValueObject> &bindArgs = {}) in Update() 65 const std::string &whereClause = "", const std::vector<ValueObject> &bindArgs = {}, in UpdateWithConflictResolution() 76 const std::vector<ValueObject> &bindArgs = {}) in Delete() 82 const std::vector<ValueObject> &bindArgs = {}, const std::string &groupBy = "", in Query() 105 const std::string &sql, const std::vector<ValueObject> &bindArgs = {}) in QueryByStep() 110 const std::string &sql, const std::vector<ValueObject> &bindArgs = std::vector<ValueObject>()) in ExecuteSql() 115 const std::vector<ValueObject> &bindArgs = std::vector<ValueObject>()) in ExecuteAndGetLong() 120 const std::vector<ValueObject> &bindArgs = std::vector<ValueObject>()) in ExecuteAndGetString() 125 const std::vector<ValueObject> &bindArgs = std::vector<ValueObject>()) in ExecuteForLastInsertedRowId() 130 const std::vector<ValueObject> &bindArgs in ExecuteForChangedRowCount() [all...] |
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | rdb_adapter_test.cpp | 298 const std::vector<ValueObject>& bindArgs = {valueObject}; in HWTEST_F() local 300 int32_t deleteErrCode = store->Delete(deleteRows, table, whereClause, bindArgs); in HWTEST_F() 329 const std::vector<ValueObject>& bindArgs = {valueObject}; in HWTEST_F() local 331 int32_t deleteErrCode = store->Delete(deleteRows, deleteTable, whereClause, bindArgs); in HWTEST_F() 359 const std::vector<ValueObject>& bindArgs = {valueObject}; in HWTEST_F() local 361 int32_t deleteErrCode = store->Delete(deleteRows, deleteTable, whereClause, bindArgs); in HWTEST_F() 388 const std::vector<ValueObject>& bindArgs = {valueObject}; in HWTEST_F() local 391 int32_t deleteErrCode = store->Delete(deleteRows, table, whereClause, bindArgs); in HWTEST_F() 433 const std::vector<ValueObject>& bindArgs = {valueObject}; in HWTEST_F() local 435 int32_t updateErrCode = store->Update(changedRows, table, newValues, whereClause, bindArgs); in HWTEST_F() 476 const std::vector<ValueObject>& bindArgs = {valueObject}; HWTEST_F() local 512 const std::vector<ValueObject>& bindArgs = {valueObject}; HWTEST_F() local 556 const std::vector<ValueObject>& bindArgs = {valueObject}; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/ |
H A D | prepared_stmt.cpp | 20 PreparedStmt::PreparedStmt(ExecutorOperation opCode, const std::string &sql, const std::vector<std::string> &bindArgs) in PreparedStmt() argument 21 : opCode_(opCode), sql_(sql), bindArgs_(bindArgs) {} in PreparedStmt() 34 void PreparedStmt::SetBindArgs(std::vector<std::string> bindArgs) in SetBindArgs() argument 36 bindArgs_ = std::move(bindArgs); in SetBindArgs() 86 // bindArgs in Serialize() 127 // bindArgs in DeSerialize()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/dataability/src/ |
H A D | data_ability_predicates.cpp | 56 std::vector<ValueObject> bindArgs;
in DataAbilityPredicates() local 58 whereArgs.begin(), whereArgs.end(), [&bindArgs](const auto &it) { bindArgs.push_back(ValueObject(it)); });
in DataAbilityPredicates() 59 PredicatesUtils::SetWhereClauseAndArgs(this, whereClause, bindArgs);
in DataAbilityPredicates()
|
H A D | predicates_utils.cpp | 27 * Set the param of whereClause and bindArgs of the specified Predicates.
37 * Set the param of whereClause and bindArgs of the specified Predicates.
40 const std::vector<ValueObject> &bindArgs)
in SetWhereClauseAndArgs() 43 predicates->SetBindArgs(bindArgs);
in SetWhereClauseAndArgs() 39 SetWhereClauseAndArgs(AbsPredicates *predicates, const std::string &whereClause, const std::vector<ValueObject> &bindArgs) SetWhereClauseAndArgs() argument
|
/foundation/deviceprofile/device_info_manager/services/core/src/persistenceadapter/rdbadapter/ |
H A D | rdb_adapter.cpp | 105 const std::vector<ValueObject>& bindArgs) in Delete() 117 int32_t ret = store_->Delete(deleteRows, table, whereClause, bindArgs); in Delete() 125 ret = store_->Delete(deleteRows, table, whereClause, bindArgs); in Delete() 136 const std::string& whereClause, const std::vector<ValueObject>& bindArgs) in Update() 148 int32_t ret = store_->Update(changedRows, table, values, whereClause, bindArgs); in Update() 156 ret = store_->Update(changedRows, table, values, whereClause, bindArgs); in Update() 104 Delete(int32_t& deleteRows, const std::string& table, const std::string& whereClause, const std::vector<ValueObject>& bindArgs) Delete() argument 135 Update(int32_t& changedRows, const std::string& table, const ValuesBucket& values, const std::string& whereClause, const std::vector<ValueObject>& bindArgs) Update() argument
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
H A D | prepared_stmt.h | 29 PreparedStmt(ExecutorOperation opCode, const std::string &sql, const std::vector<std::string> &bindArgs); 33 void SetBindArgs(std::vector<std::string> bindArgs);
|
/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter/rdbadapter/ |
H A D | rdb_adapter.h | 34 const std::vector<ValueObject>& bindArgs = {}) override; 36 const std::string& whereClause, const std::vector<ValueObject>& bindArgs = {}) override;
|
H A D | irdb_adapter.h | 39 const std::vector<ValueObject>& bindArgs = {}) = 0; 42 const std::vector<ValueObject>& bindArgs = {}) = 0;
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/ |
H A D | photo_burst_operation.cpp | 136 const std::vector<NativeRdb::ValueObject> bindArgs = {ownerAlbumId, burstGroupNameCondition};
in QueryBurstKeyFromDB() local 137 auto resultSet = rdbStore.QuerySql(querySql, bindArgs);
in QueryBurstKeyFromDB() 140 "querySql: %{public}s, bindArgs: %{public}s",
in QueryBurstKeyFromDB() 142 this->ToString(bindArgs).c_str());
in QueryBurstKeyFromDB()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_relational_tracker_table_test.cpp | 1264 condition.bindArgs = {"1"}; in HWTEST_F() 1273 condition.bindArgs = {}; in HWTEST_F() 1280 condition.bindArgs = {"1", "2"}; in HWTEST_F() 1313 condition.bindArgs = {beginId}; in HWTEST_F() 1373 condition.bindArgs = {beginId}; in HWTEST_F() 1379 condition.bindArgs = {beginId + 1}; in HWTEST_F() 1388 condition.bindArgs = {beginId}; in HWTEST_F() 1431 condition.bindArgs = {begin}; in HWTEST_F() 1441 condition.bindArgs = {}; in HWTEST_F() 1451 condition.bindArgs in HWTEST_F() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/event_handler/ |
H A D | album_plugin_table_event_handler.cpp | 57 std::vector<NativeRdb::ValueObject> bindArgs = { in InitiateData() local 66 err = store.ExecuteSql(this->INSERT_DATA_SQL, bindArgs); in InitiateData()
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/dataability/include/ |
H A D | predicates_utils.h | 44 * @brief Set the parameter of whereClause and bindArgs of the specified Predicates.
52 * @brief Set the parameter of whereClause and bindArgs of the specified Predicates.
55 const std::vector<ValueObject> &bindArgs);
|