/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
D | values_bucket.cpp | 54 void ValuesBucket::PutString(const std::string &columnName, const std::string &value) in PutString() argument 56 values_.insert(std::make_pair(columnName, ValueObject(value))); in PutString() 59 void ValuesBucket::PutInt(const std::string &columnName, int value) in PutInt() argument 61 values_.insert(std::make_pair(columnName, ValueObject(value))); in PutInt() 64 void ValuesBucket::PutLong(const std::string &columnName, int64_t value) in PutLong() argument 66 values_.insert(std::make_pair(columnName, ValueObject(value))); in PutLong() 69 void ValuesBucket::PutDouble(const std::string &columnName, double value) in PutDouble() argument 71 values_.insert(std::make_pair(columnName, ValueObject(value))); in PutDouble() 74 void ValuesBucket::PutBool(const std::string &columnName, bool value) in PutBool() argument 76 values_.insert(std::make_pair(columnName, ValueObject(value))); in PutBool() [all …]
|
D | abs_result_set.cpp | 318 int AbsResultSet::GetColumnIndex(const std::string &columnName, int &columnIndex) in GetColumnIndex() argument 321 auto it = columnMap_.find(columnName); in GetColumnIndex() 327 auto periodIndex = columnName.rfind('.'); in GetColumnIndex() 328 std::string columnNameLower = columnName; in GetColumnIndex() 345 columnMap_.insert(std::make_pair(columnName, columnIndex)); in GetColumnIndex() 351 LOG_WARN("columnName %{public}s is not in resultSet", columnName.c_str()); in GetColumnIndex() 355 int AbsResultSet::GetColumnName(int columnIndex, std::string &columnName) in GetColumnName() argument 369 columnName = columnNames[columnIndex]; in GetColumnName()
|
D | sqlite_shared_result_set.cpp | 91 std::string columnName; in GetAllColumnNames() local 92 errCode = sqliteStatement->GetColumnName(i, columnName); in GetAllColumnNames() 98 columnNames_.push_back(columnName); in GetAllColumnNames()
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/ |
D | values_bucket.h | 55 void PutString(const std::string &columnName, const std::string &value); 63 void PutInt(const std::string &columnName, int value); 71 void PutLong(const std::string &columnName, int64_t value); 79 void PutDouble(const std::string &columnName, double value); 87 void PutBool(const std::string &columnName, bool value); 95 void PutBlob(const std::string &columnName, const std::vector<uint8_t> &value); 102 void PutNull(const std::string &columnName); 110 void Put(const std::string &columnName, const ValueObject &value); 117 void Delete(const std::string &columnName); 139 bool HasColumn(const std::string &columnName) const; [all …]
|
D | abs_result_set.h | 60 int GetColumnIndex(const std::string &columnName, int &columnIndex) override; 61 int GetColumnName(int columnIndex, std::string &columnName) override;
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
D | values_bucket.h | 59 API_EXPORT void PutString(const std::string &columnName, const std::string &value); 67 API_EXPORT void PutInt(const std::string &columnName, int value); 75 API_EXPORT void PutLong(const std::string &columnName, int64_t value); 83 API_EXPORT void PutDouble(const std::string &columnName, double value); 91 API_EXPORT void PutBool(const std::string &columnName, bool value); 99 API_EXPORT void PutBlob(const std::string &columnName, const std::vector<uint8_t> &value); 106 API_EXPORT void PutNull(const std::string &columnName); 114 API_EXPORT void Put(const std::string &columnName, const ValueObject &value); 121 API_EXPORT void Delete(const std::string &columnName); 143 API_EXPORT bool HasColumn(const std::string &columnName) const; [all …]
|
D | remote_result_set.h | 145 virtual int GetColumnIndex(const std::string &columnName, int &columnIndex) = 0; 153 virtual int GetColumnName(int columnIndex, std::string &columnName) = 0;
|
D | abs_result_set.h | 284 API_EXPORT int GetColumnIndex(const std::string &columnName, int &columnIndex) override; 293 API_EXPORT int GetColumnName(int columnIndex, std::string &columnName) override;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/data/ |
D | resultset_json_formatter.cpp | 49 std::string columnName; in MarshalRow() local 56 if (resultSet->GetColumnName(i, columnName) != E_OK) { in MarshalRow() 64 SetValue(result[columnName], value); in MarshalRow() 69 SetValue(result[columnName], dValue); in MarshalRow() 72 result[columnName] = nullptr; in MarshalRow() 77 SetValue(result[columnName], stringValue); in MarshalRow() 83 SetValue(result[columnName], blobValue); in MarshalRow()
|
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/ |
D | datashare_values_bucket.h | 50 void Put(const std::string &columnName, const DataShareValueObject &value = {}) 52 valuesMap.insert(std::make_pair(columnName, value.value)); 74 DataShareValueObject Get(const std::string &columnName, bool &isValid) const in Get() argument 76 auto iter = valuesMap.find(columnName); in Get()
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/ |
D | datashare_abs_result_set.cpp | 192 int DataShareAbsResultSet::GetColumnIndex(const std::string &columnName, int &columnIndex) in GetColumnIndex() argument 194 if (indexCache_.find(columnName) != indexCache_.end()) { in GetColumnIndex() 195 columnIndex = indexCache_[columnName]; in GetColumnIndex() 198 auto periodIndex = columnName.rfind('.'); in GetColumnIndex() 199 std::string columnNameLower = columnName; in GetColumnIndex() 216 indexCache_[columnName] = columnIndex; in GetColumnIndex() 225 int DataShareAbsResultSet::GetColumnName(int columnIndex, std::string &columnName) in GetColumnName() argument 238 columnName = columnNames[columnIndex]; in GetColumnName()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb_data_ability_adapter/src/ |
D | result_set_utils.cpp | 41 int ResultSetUtils::GetColumnIndex(const std::string &columnName, int &columnIndex) in GetColumnIndex() argument 43 return resultSet_->GetColumnIndex(columnName, columnIndex); in GetColumnIndex() 46 int ResultSetUtils::GetColumnName(int columnIndex, std::string &columnName) in GetColumnName() argument 48 return resultSet_->GetColumnName(columnIndex, columnName); in GetColumnName()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
D | kv_store_result_set_impl.cpp | 196 DBStatus KvStoreResultSetImpl::GetColumnIndex(const std::string &columnName, int &columnIndex) const in GetColumnIndex() argument 199 (void)columnName; in GetColumnIndex() 203 DBStatus KvStoreResultSetImpl::GetColumnName(int columnIndex, std::string &columnName) const in GetColumnName() 206 (void)columnName; in GetColumnName()
|
D | kv_store_result_set_impl.h | 89 DBStatus GetColumnIndex(const std::string &columnName, int &columnIndex) const override; 92 DBStatus GetColumnName(int columnIndex, std::string &columnName) const override;
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
D | media_column.cpp | 186 bool PhotoColumn::IsPhotoColumn(const std::string &columnName) in IsPhotoColumn() argument 188 if (columnName == "count(*)") { in IsPhotoColumn() 191 return (PHOTO_COLUMNS.find(columnName) != PHOTO_COLUMNS.end()) || in IsPhotoColumn() 192 (MEDIA_COLUMNS.find(columnName) != MEDIA_COLUMNS.end()); in IsPhotoColumn() 242 bool AudioColumn::IsAudioColumn(const std::string &columnName) in IsAudioColumn() argument 244 return (AUDIO_COLUMNS.find(columnName) != AUDIO_COLUMNS.end()) || in IsAudioColumn() 245 (MEDIA_COLUMNS.find(columnName) != MEDIA_COLUMNS.end()); in IsAudioColumn()
|
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/basic/ |
D | result_set.h | 66 virtual int GetColumnIndex(const std::string &columnName, int &columnIndex) = 0; 74 virtual int GetColumnName(int columnIndex, std::string &columnName) = 0;
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
D | rdb_result_set_stub.cpp | 108 std::string columnName; in OnGetColumnIndex() local 109 ITypesUtil::Unmarshal(data, columnName); in OnGetColumnIndex() 111 int status = GetColumnIndex(columnName, columnIndex); in OnGetColumnIndex() 113 ZLOGE("failed, status: %{public}d columnName: %{public}s.", status, columnName.c_str()); in OnGetColumnIndex() 131 std::string columnName; in OnGetColumnName() local 132 int status = GetColumnName(columnIndex, columnName); in OnGetColumnName() 141 if (!ITypesUtil::Marshal(reply, status, columnName)) { in OnGetColumnName()
|
D | rdb_result_set_impl.cpp | 67 int RdbResultSetImpl::GetColumnIndex(const std::string &columnName, int &columnIndex) in GetColumnIndex() argument 74 if (colNames_[i] == columnName) { in GetColumnIndex() 82 int RdbResultSetImpl::GetColumnName(int columnIndex, std::string &columnName) in GetColumnName() argument 91 columnName = colNames_[columnIndex]; in GetColumnName()
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb_data_ability_adapter/include/ |
D | result_set_utils.h | 31 int GetColumnIndex(const std::string &columnName, int &columnIndex) override; 32 int GetColumnName(int columnIndex, std::string &columnName) override;
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
D | datashare_abs_result_set.h | 50 int GetColumnIndex(const std::string &columnName, int &columnIndex) override; 51 int GetColumnName(int columnIndex, std::string &columnName) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/ |
D | kv_store_result_set.h | 81 … DB_API virtual DBStatus GetColumnIndex(const std::string &columnName, int &columnIndex) const = 0; 84 DB_API virtual DBStatus GetColumnName(int columnIndex, std::string &columnName) const = 0;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
D | result_set_proxy.h | 30 int GetColumnIndex(const std::string &columnName, int &columnIndex) override; 31 int GetColumnName(int columnIndex, std::string &columnName) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
D | relational_result_set_impl.h | 92 DBStatus GetColumnIndex(const std::string &columnName, int &columnIndex) const override; 95 DBStatus GetColumnName(int columnIndex, std::string &columnName) const override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/distributeddb/ |
D | result_set.h | 84 … DB_API virtual DBStatus GetColumnIndex(const std::string &columnName, int &columnIndex) const = 0; 87 DB_API virtual DBStatus GetColumnName(int columnIndex, std::string &columnName) const = 0;
|
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/ |
D | result_set_utils.h | 26 …std::variant<int32_t, std::string, int64_t, double> GetValFromColumn(const std::string &columnName, in GetValFromColumn() argument 36 err = resultSet->GetColumnIndex(columnName, index); in GetValFromColumn()
|