/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | json_object.h | 61 bool IsFieldPathExist(const FieldPath &inPath) const; 62 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const; 68 int GetObjectByFieldPath(const FieldPath &inPath, JsonObject &outObj) const; 72 int GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const; 73 int GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath) const; 74 …int GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType… 75 …int GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outS… 78 int GetArraySize(const FieldPath &inPath, uint32_t &outSize) const; 82 int GetArrayContentOfStringOrStringArray(const FieldPath &inPath, 100 int DeleteField(const FieldPath &inPath); [all …]
|
H A D | value_object.h | 49 bool IsFieldPathExist(const FieldPath &inPath) const; 50 int GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const; 51 int GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const; 55 int GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const; 56 int GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath) const; 57 …int GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &outSubPathType… 58 …int GetSubFieldPathAndType(const std::set<FieldPath> &inPath, std::map<FieldPath, FieldType> &outS… 64 int InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue); 68 int DeleteField(const FieldPath &inPath);
|
H A D | schema_object.h | 32 using IndexName = FieldPath; 33 using IndexFieldInfo = std::pair<FieldPath, FieldType>; 46 …static std::string GenerateExtractSQL(SchemaType inSchemaType, const FieldPath &inFieldpath, Field… 77 int CheckQueryableAndGetFieldType(const FieldPath &inPath, FieldType &outType) const; 115 using SchemaDefine = std::map<FieldPath, SchemaAttribute>; 122 …int CheckSchemaDefineItemDecideAttribute(const JsonObject &inJsonObject, const FieldPath &inPath, … 129 …int CheckFieldPathIndexableThenSave(const std::vector<FieldPath> &inPathVec, IndexInfo &infoToSave… 141 int CheckValue(const ValueObject &inValue, std::set<FieldPath> &lackingPaths) const; 142 …int AmendValueIfNeed(ValueObject &inValue, const std::set<FieldPath> &lackingPaths, bool &amended)… 183 const FieldPath &path, RawIndexInfos &indexCollect); [all …]
|
H A D | schema_utils.h | 37 …static int ParseAndCheckFieldPath(const std::string &inPathString, FieldPath &outPath, bool permit… 52 static std::string FieldPathString(const FieldPath &inPath);
|
H A D | db_types.h | 98 using FieldPath = std::vector<std::string>; variable
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | value_object.cpp | 102 bool ValueObject::IsFieldPathExist(const FieldPath &inPath) const in IsFieldPathExist() 107 int ValueObject::GetFieldTypeByFieldPath(const FieldPath &inPath, FieldType &outType) const in GetFieldTypeByFieldPath() 115 int ValueObject::GetFieldValueByFieldPath(const FieldPath &inPath, FieldValue &outValue) const in GetFieldValueByFieldPath() 123 int ValueObject::GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const in GetSubFieldPath() 131 int ValueObject::GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath… in GetSubFieldPath() 139 int ValueObject::GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &ou… in GetSubFieldPathAndType() argument 147 int ValueObject::GetSubFieldPathAndType(const std::set<FieldPath> &inPath, in GetSubFieldPathAndType() 148 std::map<FieldPath, FieldType> &outSubPathType) const in GetSubFieldPathAndType() argument 156 int ValueObject::InsertField(const FieldPath &inPath, FieldType inType, const FieldValue &inValue) in InsertField() 165 int ValueObject::DeleteField(const FieldPath &inPath) in DeleteField()
|
H A D | json_object.cpp | 313 int JsonObject::GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const in GetSubFieldPath() 330 FieldPath eachSubPath = inPath; in GetSubFieldPath() 337 int JsonObject::GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath)… in GetSubFieldPath() 348 int JsonObject::GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &out… in GetSubFieldPathAndType() argument 365 FieldPath eachSubPath = inPath; in GetSubFieldPathAndType() 378 std::map<FieldPath, FieldType> &outSubPathType) const in GetSubFieldPathAndType() argument 572 int JsonObject::DeleteField(const FieldPath &inPath) in DeleteField() 862 int JsonObject::GetSubFieldPath(const FieldPath &inPath, std::set<FieldPath> &outSubPath) const 869 int JsonObject::GetSubFieldPath(const std::set<FieldPath> &inPath, std::set<FieldPath> &outSubPath)… 876 int JsonObject::GetSubFieldPathAndType(const FieldPath &inPath, std::map<FieldPath, FieldType> &out… [all …]
|
H A D | schema_object.cpp | 299 std::set<FieldPath> lackingPaths; in CheckValueAndAmendIfNeed() 453 std::map<FieldPath, FieldType> metaFieldPathType; in CheckMetaFieldCountAndType() 537 std::set<FieldPath> nestPathCurDepth{FieldPath{SchemaConstant::KEYWORD_SCHEMA_DEFINE}}; in ParseCheckSchemaDefine() 540 std::map<FieldPath, FieldType> subPathType; in ParseCheckSchemaDefine() 686 std::vector<FieldPath> indexPathVec; in ParseCheckEachIndexFromStringArray() 687 std::set<FieldPath> indexPathSet; in ParseCheckEachIndexFromStringArray() 690 FieldPath eachPath; in ParseCheckEachIndexFromStringArray() 1062 const std::map<FieldPath, FieldType> &subPathType, std::set<FieldPath> &lackingPaths) in CheckValueBySchemaItem() argument 1075 inline std::string ValueFieldType(const std::map<FieldPath, FieldType> &subPathType, const FieldPat… in ValueFieldType() argument 1086 std::set<FieldPath> nestPathCurDepth{FieldPath()}; // Empty path represent root path in CheckValue() [all …]
|
H A D | flatbuffer_schema.cpp | 541 FieldPath path{name->str()}; in ParseCheckRootTableDefine() 599 const reflection::Field &field, const FieldPath &path, RawIndexInfos &indexCollect) in ParseCheckFieldInfo() 661 const reflection::Field &field, const FieldPath &path) in ParseCheckStructDefine() 699 FieldPath eachPath = path; in ParseCheckStructDefine()
|
H A D | schema_utils.cpp | 383 int SchemaUtils::ParseAndCheckFieldPath(const std::string &inPathString, FieldPath &outPath, bool p… in ParseAndCheckFieldPath() 495 std::string SchemaUtils::FieldPathString(const FieldPath &inPath) in FieldPathString()
|
H A D | query_expression.cpp | 47 FieldPath outPath; in AssemblyQueryInfo()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/ |
H A D | distributeddb_schema_object_test.cpp | 911 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F1", "L3F2"}, FieldType::LEAF_FIELD_LONG, va… 913 errCode = testObject.InsertField(FieldPath{"L1F1", "L2F2"}, FieldType::LEAF_FIELD_OBJECT, val); 919 …errCode = testObject.InsertField(FieldPath{"L1F1", "L2F2", "L3F4"}, FieldType::LEAF_FIELD_BOOL, va… 921 errCode = testObject.InsertField(FieldPath{"L1F2"}, FieldType::LEAF_FIELD_NULL, val); 928 errCode = testObject.DeleteField(FieldPath{"L1F1", "L2F1", "L3F1", "L4F1"}); 930 errCode = testObject.DeleteField(FieldPath{"L1F1", "L2F1", "L3F1"}); 932 errCode = testObject.DeleteField(FieldPath{"L1F1"}); 966 errCode = testObject.DeleteField(FieldPath{"L1F1", "L2F1", "L3F1", "L4F1"}); 1070 EXPECT_EQ(val.IsFieldPathExist(FieldPath{"level_0_nest_0", "level_1_nest_0"}), true); 1113 FieldPath inFieldpath1 = {}; [all …]
|
H A D | distributeddb_schema_unit_test.cpp | 466 FieldPath ans; 510 FieldPath ans;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_index_unit_test.cpp | 102 FieldPath result; in GenerateFieldPath() 110 string GenerateSchemaIndexArray(const vector<FieldPath> &indexAll) in GenerateSchemaIndexArray() 125 string GenerateEachSchemaDefine(const FieldPath &eachPath) in GenerateEachSchemaDefine() 138 …string GenerateSchemaString(const vector<FieldPath> &define, const vector<FieldPath> &index, int s… in GenerateSchemaString() 163 string GenerateValueItem(const FieldPath &eachPath, int intValue) in GenerateValueItem() 175 string GenerateValue(const vector<FieldPath> &define, uint32_t skipSize) in GenerateValue() 192 vector<FieldPath> g_pathGroup1; 193 vector<FieldPath> g_pathGroup2; 196 vector<FieldPath> g_definePath; 219 FieldPath path = GenerateFieldPath(level, serial, fullLength); in PrepareCommonInfo() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/ |
H A D | relational_schema_object.cpp | 366 if (!inJsonObject.IsFieldPathExist(FieldPath {fieldName})) { in GetMemberFromJsonObject() 375 int errCode = inJsonObject.GetFieldTypeByFieldPath(FieldPath {fieldName}, fieldType); in GetMemberFromJsonObject() 387 errCode = inJsonObject.GetFieldValueByFieldPath(FieldPath {fieldName}, fieldValue); in GetMemberFromJsonObject() 496 errCode = value.GetFieldValueByFieldPath(FieldPath {}, fieldValue); in ParseCheckTrackerName() 694 std::map<FieldPath, FieldType> tableFields; in ParseCheckTableDefine() 695 int errCode = inJsonObject.GetSubFieldPathAndType(FieldPath {"DEFINE"}, tableFields); in ParseCheckTableDefine() 809 if (!inJsonObject.IsFieldPathExist(FieldPath {"PRIMARY_KEY"})) { in ParseCheckTablePrimaryKey() 814 int errCode = inJsonObject.GetFieldTypeByFieldPath(FieldPath {"PRIMARY_KEY"}, type); in ParseCheckTablePrimaryKey() 989 if (!inJsonObject.IsFieldPathExist(FieldPath {"INDEX"})) { // INDEX is not necessary in ParseCheckTableIndex() 992 std::map<FieldPath, FieldType> tableFields; in ParseCheckTableIndex() [all …]
|
H A D | table_info.cpp | 707 std::map<FieldPath, SchemaAttribute> TableInfo::GetSchemaDefine() const in GetSchemaDefine() 709 std::map<FieldPath, SchemaAttribute> schemaDefine; in GetSchemaDefine()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/parseckeck_fuzzer/ |
H A D | parseckeck_fuzzer.cpp | 75 FieldPath outPath; in ParseFieldPath()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/ |
H A D | table_info.h | 112 std::map<FieldPath, SchemaAttribute> GetSchemaDefine() const;
|
H A D | relational_schema_object.h | 84 …int ParseCheckTableFieldInfo(const JsonObject &inJsonObject, const FieldPath &path, FieldInfo &tab…
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | query_object.cpp | 304 FieldPath fieldPath; in CheckEqualFormat() 381 FieldPath fieldPath; in CheckOrderByFormat()
|
H A D | sqlite_utils.h | 213 …id JsonExtractInnerFunc(sqlite3_context *ctx, const ValueObject &inValue, const FieldPath &inPath);
|
H A D | sqlite_utils.cpp | 1891 FieldPath outPath; in JsonExtractByPath() 1915 …ls::JsonExtractInnerFunc(sqlite3_context *ctx, const ValueObject &inValue, const FieldPath &inPath) in JsonExtractInnerFunc()
|
H A D | sqlite_query_helper.cpp | 716 FieldPath fieldPath; in MapCastFuncSql()
|