/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | data_value.cpp | 122 case StorageType::STORAGE_TYPE_REAL: in operator =() 125 case StorageType::STORAGE_TYPE_BLOB: in operator =() 126 case StorageType::STORAGE_TYPE_TEXT: in operator =() 145 case StorageType::STORAGE_TYPE_BLOB: in operator =() 146 case StorageType::STORAGE_TYPE_TEXT: in operator =() 166 type_ = StorageType::STORAGE_TYPE_REAL; in operator =() 184 type_ = StorageType::STORAGE_TYPE_BLOB; in Set() 247 if (type_ != StorageType::STORAGE_TYPE_BLOB && type_ != StorageType::STORAGE_TYPE_TEXT) { in GetBlob() 269 type_ = StorageType::STORAGE_TYPE_BLOB; in SetBlob() 279 if (type_ != StorageType::STORAGE_TYPE_BLOB && type_ != StorageType::STORAGE_TYPE_TEXT) { in GetBlob() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | data_transformer.cpp | 99 case StorageType::STORAGE_TYPE_NULL: in CalDataValueLength() 101 case StorageType::STORAGE_TYPE_INTEGER: in CalDataValueLength() 103 case StorageType::STORAGE_TYPE_REAL: in CalDataValueLength() 108 if (dataValue.GetType() != StorageType::STORAGE_TYPE_BLOB && in CalDataValueLength() 109 dataValue.GetType() != StorageType::STORAGE_TYPE_TEXT) { in CalDataValueLength() 114 case StorageType::STORAGE_TYPE_BLOB: in CalDataValueLength() 115 case StorageType::STORAGE_TYPE_TEXT: { in CalDataValueLength() 218 if (type == StorageType::STORAGE_TYPE_TEXT) { in DeSerializeBlobByType() 220 } else if (type == StorageType::STORAGE_TYPE_BLOB) { in DeSerializeBlobByType() 253 StorageType type = dataValue.GetType(); in SerializeDataValue() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_data_transformer_test.cpp | 53 std::map<StorageType, void(*)(DataValue&)> g_typeMapFunction = { 54 {StorageType::STORAGE_TYPE_NULL, &SetNull}, 55 {StorageType::STORAGE_TYPE_INTEGER, &SetInt64}, 56 {StorageType::STORAGE_TYPE_REAL, &SetDouble}, 57 {StorageType::STORAGE_TYPE_TEXT, &SetText}, 58 {StorageType::STORAGE_TYPE_BLOB, &SetBlob} 65 StorageType type = StorageType::STORAGE_TYPE_NULL; in GenerateRowData()
|
H A D | distributeddb_relational_schema_analysis_test.cpp | 198 …EXPECT_EQ(field.GetStorageType(), StorageType::STORAGE_TYPE_BLOB); // asset and assets affinity bl… 200 …EXPECT_EQ(field.GetStorageType(), StorageType::STORAGE_TYPE_NULL); // asset and assets affinity bl…
|
H A D | distributeddb_relational_result_set_test.cpp | 167 StorageType type = StorageType::STORAGE_TYPE_NONE; 169 EXPECT_EQ(type, StorageType::STORAGE_TYPE_NULL);
|
H A D | distributeddb_cloud_schema_mgr_test.cpp | 710 EXPECT_EQ(fieldInfo.GetStorageType(), StorageType::STORAGE_TYPE_INTEGER); 712 EXPECT_EQ(fieldInfo.GetStorageType(), StorageType::STORAGE_TYPE_INTEGER);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/ |
H A D | table_info.cpp | 73 StorageType type = StorageType::STORAGE_TYPE_NULL; in AffinityType() 78 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType() 80 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType() 82 type = StorageType::STORAGE_TYPE_TEXT; in AffinityType() 84 type == StorageType::STORAGE_TYPE_REAL)) { in AffinityType() 85 type = StorageType::STORAGE_TYPE_BLOB; in AffinityType() 87 type = StorageType::STORAGE_TYPE_REAL; in AffinityType() 89 type = StorageType::STORAGE_TYPE_REAL; in AffinityType() 91 type = StorageType::STORAGE_TYPE_REAL; in AffinityType() 93 type = StorageType::STORAGE_TYPE_INTEGER; in AffinityType() [all …]
|
H A D | relational_result_set_impl.cpp | 172 { static_cast<int>(StorageType::STORAGE_TYPE_NONE), ColumnType::INVALID_TYPE }, in GetColumnType() 173 { static_cast<int>(StorageType::STORAGE_TYPE_NULL), ColumnType::NULL_VALUE }, in GetColumnType() 174 { static_cast<int>(StorageType::STORAGE_TYPE_INTEGER), ColumnType::INT64 }, in GetColumnType() 175 { static_cast<int>(StorageType::STORAGE_TYPE_REAL), ColumnType::DOUBLE }, in GetColumnType() 176 { static_cast<int>(StorageType::STORAGE_TYPE_TEXT), ColumnType::STRING }, in GetColumnType() 177 { static_cast<int>(StorageType::STORAGE_TYPE_BLOB), ColumnType::BLOB }, in GetColumnType() 185 auto type = StorageType::STORAGE_TYPE_NONE; in GetColumnType() 276 auto type = StorageType::STORAGE_TYPE_NONE; in IsColumnNull() 279 isNull = type == StorageType::STORAGE_TYPE_NULL; in IsColumnNull()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_data_value_test.cpp | 35 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_NULL); in DataValueDefaultNullCheck() 46 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_REAL); in DataValueDoubleCheck() 64 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_INTEGER); in DataValueInt64Check() 81 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_TEXT); in DataValueStringCheck() 101 EXPECT_EQ(dataValue.GetType(), StorageType::STORAGE_TYPE_BLOB); in DataValueBlobCheck()
|
H A D | distributeddb_interfaces_relational_sync_test.cpp | 585 EXPECT_EQ(dataVal.GetType(), StorageType::STORAGE_TYPE_TEXT); in GetKey() 837 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER); 843 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_TEXT); 849 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER); 854 EXPECT_EQ(value.GetType(), StorageType::STORAGE_TYPE_INTEGER); 937 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_INTEGER); 939 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_INTEGER); 941 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_REAL); 943 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_TEXT); 945 EXPECT_EQ(val.GetType(), StorageType::STORAGE_TYPE_BLOB); [all …]
|
/ohos5.0/base/update/updater/services/ptable_parse/ |
H A D | ptable_manager.h | 30 enum class StorageType { enum 45 StorageType storage_ = StorageType::STORAGE_UNKNOWN; 60 StorageType GetDeviceStorageType();
|
H A D | ptable_manager.cpp | 32 PtableManager::StorageType PtableManager::GetDeviceStorageType() in GetDeviceStorageType() 39 if (storage_ != StorageType::STORAGE_UNKNOWN) { in SetDeviceStorageType() 43 storage_ = StorageType::STORAGE_UFS; in SetDeviceStorageType() 46 storage_ = StorageType::STORAGE_EMMC; in SetDeviceStorageType() 70 if (GetDeviceStorageType() == StorageType::STORAGE_UFS) { in InitPtablePtr()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/ |
H A D | schema_mgr.cpp | 109 StorageType localType = localField.GetStorageType(); in CompareType() 115 return localType == StorageType::STORAGE_TYPE_NULL; in CompareType() 117 return localType == StorageType::STORAGE_TYPE_INTEGER; in CompareType() 119 return localType == StorageType::STORAGE_TYPE_REAL; in CompareType() 121 return localType == StorageType::STORAGE_TYPE_TEXT; in CompareType() 125 return localType == StorageType::STORAGE_TYPE_BLOB; in CompareType()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | data_value.h | 68 StorageType GetType() const; 81 StorageType type_ = StorageType::STORAGE_TYPE_NULL;
|
H A D | db_types.h | 152 enum class StorageType : int32_t { enum
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
H A D | table_info.h | 45 StorageType GetStorageType() const; 46 void SetStorageType(StorageType storageType); 65 StorageType storageType_ = StorageType::STORAGE_TYPE_NONE;
|
H A D | relational_row_data.h | 34 virtual int GetType(int index, StorageType &type) const = 0;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_relational_ver_p2p_sync_test.cpp | 66 std::vector<StorageType> g_storageType = { 67 StorageType::STORAGE_TYPE_INTEGER, StorageType::STORAGE_TYPE_REAL, 68 StorageType::STORAGE_TYPE_TEXT, StorageType::STORAGE_TYPE_BLOB 127 std::string GetType(StorageType type) in GetType() 132 {StorageType::STORAGE_TYPE_TEXT, "TEXT"}, in GetType() 133 {StorageType::STORAGE_TYPE_BLOB, "BLOB"} in GetType() 136 type = StorageType::STORAGE_TYPE_INTEGER; in GetType() 212 case StorageType::STORAGE_TYPE_REAL: { in BindValue() 219 case StorageType::STORAGE_TYPE_TEXT: { in BindValue() 226 case StorageType::STORAGE_TYPE_BLOB: { in BindValue() [all …]
|
/ohos5.0/base/update/updater/test/unittest/ptable_parse_test/ |
H A D | ptable_manager_unittest.cpp | 129 ASSERT_EQ(context.storage_, PtableManagerTest::StorageType::STORAGE_UFS); in TestInitPtableManagerAndSetDeviceStorageType() 130 context.storage_ = PtableManagerTest::StorageType::STORAGE_EMMC; in TestInitPtableManagerAndSetDeviceStorageType() 132 ASSERT_EQ(context.storage_, PtableManagerTest::StorageType::STORAGE_EMMC); in TestInitPtableManagerAndSetDeviceStorageType()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/ |
H A D | relational_row_data_impl.h | 35 int GetType(int index, StorageType &type) const override;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/relational/ |
H A D | relational_row_data_impl.cpp | 74 int RelationalRowDataImpl::GetType(int index, StorageType &type) const in GetType()
|
/ohos5.0/base/update/updateservice/services/firmware/common/include/ |
H A D | firmware_common.h | 94 enum StorageType { enum
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils.cpp | 2318 StorageType type = data.value_or(DataValue()).GetType(); in BindDataValueByType() 2320 case StorageType::STORAGE_TYPE_INTEGER: { in BindDataValueByType() 2327 case StorageType::STORAGE_TYPE_REAL: { in BindDataValueByType() 2334 case StorageType::STORAGE_TYPE_TEXT: { in BindDataValueByType() 2341 case StorageType::STORAGE_TYPE_BLOB: { in BindDataValueByType() 2349 case StorageType::STORAGE_TYPE_NULL: { in BindDataValueByType()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_relational_utils.cpp | 64 if (value.GetType() != StorageType::STORAGE_TYPE_TEXT) { in GetDataValueByType()
|
H A D | sqlite_relational_store.cpp | 990 type = static_cast<int32_t>(StorageType::STORAGE_TYPE_NULL); in CheckFields() 992 type = static_cast<int32_t>(StorageType::STORAGE_TYPE_BLOB); in CheckFields()
|