Home
last modified time | relevance | path

Searched refs:columnName (Results 1 – 25 of 53) sorted by relevance

123

/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
Dvalues_bucket.cpp54 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 …]
Dabs_result_set.cpp318 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()
Dsqlite_shared_result_set.cpp91 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/
Dvalues_bucket.h55 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 …]
Dabs_result_set.h60 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/
Dvalues_bucket.h59 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 …]
Dremote_result_set.h145 virtual int GetColumnIndex(const std::string &columnName, int &columnIndex) = 0;
153 virtual int GetColumnName(int columnIndex, std::string &columnName) = 0;
Dabs_result_set.h284 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/
Dresultset_json_formatter.cpp49 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/
Ddatashare_values_bucket.h50 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/
Ddatashare_abs_result_set.cpp192 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/
Dresult_set_utils.cpp41 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/
Dkv_store_result_set_impl.cpp196 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()
Dkv_store_result_set_impl.h89 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/
Dmedia_column.cpp186 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/
Dresult_set.h66 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/
Drdb_result_set_stub.cpp108 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()
Drdb_result_set_impl.cpp67 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/
Dresult_set_utils.h31 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/
Ddatashare_abs_result_set.h50 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/
Dkv_store_result_set.h81 … 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/
Dresult_set_proxy.h30 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/
Drelational_result_set_impl.h92 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/
Dresult_set.h84 … 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/
Dresult_set_utils.h26 …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()

123