Home
last modified time | relevance | path

Searched refs:SchemaAttribute (Results 1 - 10 of 10) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_schema_unit_test.cpp55 map<string, SchemaAttribute> g_schemaAttrDefTestDataDir;
57 void CheckSchemaAttribute(const SchemaAttribute &res, const SchemaAttribute &check) in CheckSchemaAttribute()
69 SchemaAttribute attributeRes; in PreNumDataForParseAndCheckSchemaAttribute003()
75 SchemaAttribute attributeRes1; in PreNumDataForParseAndCheckSchemaAttribute003()
82 SchemaAttribute attributeRes2; in PreNumDataForParseAndCheckSchemaAttribute003()
88 SchemaAttribute attributeRes3; in PreNumDataForParseAndCheckSchemaAttribute003()
94 SchemaAttribute attributeRes4; in PreNumDataForParseAndCheckSchemaAttribute003()
104 SchemaAttribute attributeRes5; in PreStringDataForParseAndCheckSchemaAttribute003()
110 SchemaAttribute attributeRes in PreStringDataForParseAndCheckSchemaAttribute003()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/
H A Dschema_utils.h26 // Check if any invalid exist, parse it into SchemaAttribute if totally valid and return E_OK
27 // Number don't support format of scientific notation. SchemaAttribute.isIndexable always set true.
30 static int ParseAndCheckSchemaAttribute(const std::string &inAttrString, SchemaAttribute &outAttr,
64 static int ParseSchemaAttribute(std::vector<std::string> &attrContext, SchemaAttribute &outAttr, bool useAffinity);
66 static int TransformDefaultValue(std::string &defaultContent, SchemaAttribute &outAttr);
68 static int TransToDouble(const std::string &defaultContent, SchemaAttribute &outAttr);
70 static int TransToInteger(const std::string &defaultContent, SchemaAttribute &outAttr);
72 static int TransToLong(const std::string &defaultContent, SchemaAttribute &outAttr);
74 static int TransToString(const std::string &defaultContent, SchemaAttribute &outAttr);
76 static int TransToBool(const std::string &defaultContent, SchemaAttribute
[all...]
H A Dschema_object.h115 using SchemaDefine = std::map<FieldPath, SchemaAttribute>;
123 SchemaAttribute &outAttr) const;
136 int CompareSchemaAttribute(const SchemaAttribute &oldAttr, const SchemaAttribute &newAttr) const;
137 int CompareSchemaDefaultValue(const SchemaAttribute &oldAttr, const SchemaAttribute &newAttr) const;
H A Dischema.h42 struct SchemaAttribute { struct in DistributedDB::SchemaType
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dschema_object.cpp224 const SchemaAttribute &targetAttr = schemaDefine_.at(inPath.size() - 1).at(inPath); in CheckQueryableAndGetFieldType()
549 SchemaAttribute attribute; in ParseCheckSchemaDefine()
582 FieldType inType, SchemaAttribute &outAttr) const in CheckSchemaDefineItemDecideAttribute()
618 outAttr = SchemaAttribute{inType, false, false, false, FieldValue()}; in CheckSchemaDefineItemDecideAttribute()
620 outAttr = SchemaAttribute{inType, false, false, false, FieldValue()}; in CheckSchemaDefineItemDecideAttribute()
622 outAttr = SchemaAttribute{inType, false, false, false, FieldValue()}; // hasNotNull set false is OK for this in CheckSchemaDefineItemDecideAttribute()
816 inline bool IsExtraFieldConformToCompatibility(const SchemaAttribute &inAttr) in IsExtraFieldConformToCompatibility()
830 // SchemaAttribute require to be equal exactly in CompareSchemaDefineByDepth()
851 int SchemaObject::CompareSchemaAttribute(const SchemaAttribute &oldAttr, const SchemaAttribute
[all...]
H A Dschema_utils.cpp134 int SchemaUtils::TransToBool(const std::string &defaultContent, SchemaAttribute &outAttr) in TransToBool()
148 int SchemaUtils::TransToString(const std::string &defaultContent, SchemaAttribute &outAttr) in TransToString()
162 int SchemaUtils::TransToInteger(const std::string &defaultContent, SchemaAttribute &outAttr) in TransToInteger()
184 int SchemaUtils::TransToLong(const std::string &defaultContent, SchemaAttribute &outAttr) in TransToLong()
207 int SchemaUtils::TransToDouble(const std::string &defaultContent, SchemaAttribute &outAttr) in TransToDouble()
246 int SchemaUtils::TransformDefaultValue(std::string &defaultContent, SchemaAttribute &outAttr) in TransformDefaultValue()
280 LOGD("SchemaAttribute type is [%d], transfer result is [%d]", static_cast<int>(outAttr.type), errCode); in TransformDefaultValue()
284 int SchemaUtils::ParseAndCheckSchemaAttribute(const std::string &inAttrString, SchemaAttribute &outAttr, in ParseAndCheckSchemaAttribute()
308 int SchemaUtils::ParseSchemaAttribute(std::vector<std::string> &attrContext, SchemaAttribute &outAttr, bool useAffinity) in ParseSchemaAttribute()
H A Dflatbuffer_schema.cpp607 SchemaAttribute &fieldInfo = owner_.schemaDefine_[depth][path]; // Create new entry in schemaDefine_ in ParseCheckFieldInfo()
615 // Only type and isIndexable of SchemaAttribute is necessary in ParseCheckFieldInfo()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/parseckeck_fuzzer/
H A Dparseckeck_fuzzer.cpp82 SchemaAttribute outAttr; in CheckSchemaAttribute()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/
H A Dtable_info.h112 std::map<FieldPath, SchemaAttribute> GetSchemaDefine() const;
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Dtable_info.cpp707 std::map<FieldPath, SchemaAttribute> TableInfo::GetSchemaDefine() const in GetSchemaDefine()
709 std::map<FieldPath, SchemaAttribute> schemaDefine; in GetSchemaDefine()
713 schemaDefine[std::vector { DBCommon::ToLowerCase(fieldName) }] = SchemaAttribute { in GetSchemaDefine()

Completed in 9 milliseconds