Home
last modified time | relevance | path

Searched refs:QueryObjNode (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dquery_object.h32 QueryObject(const std::list<QueryObjNode> &queryObjNodes, const std::vector<uint8_t> &prefixKey,
78 std::list<QueryObjNode> queryObjNodes_;
93 int ParseNode(const std::list<QueryObjNode>::iterator &iter);
94 int ParseNodeByOperFlag(const std::list<QueryObjNode>::iterator &iter);
95 int CheckEqualFormat(const std::list<QueryObjNode>::iterator &iter) const;
96 int CheckLinkerFormat(const std::list<QueryObjNode>::iterator &iter) const;
97 int CheckSuggestIndexFormat(const std::list<QueryObjNode>::iterator &iter) const;
98 int CheckOrderByFormat(const std::list<QueryObjNode>::iterator &iter);
99 int CheckLimitFormat(const std::list<QueryObjNode>::iterator &iter) const;
100 int CheckLinkerBefore(const std::list<QueryObjNode>::iterator &iter) const;
H A Dsqlite_query_helper.h34 std::list<QueryObjNode> queryObjNodes_;
138 int ParseQueryExpression(const QueryObjNode &queryNode, std::string &querySql,
140 …std::string MapRelationalSymbolToSql(const QueryObjNode &queryNode, bool placeholder = false) cons…
141 std::string MapKeywordSymbolToSql(const QueryObjNode &queryNode);
142 std::string MapLogicSymbolToSql(const QueryObjNode &queryNode) const;
143 std::string MapValueToSql(const QueryObjNode &queryNode, bool placeholder) const;
144 std::string MapCastFuncSql(const QueryObjNode &queryNode, const std::string &accessStr = "");
146 int BindFieldValue(sqlite3_stmt *statement, const QueryObjNode &queryNode, int &index) const;
160 std::string GetFieldShape(const QueryObjNode &queryNode, const std::string &accessStr = "");
166 std::list<QueryObjNode> queryObjNodes_;
H A Dquery_sync_object.h33 std::list<QueryObjNode> queryObjNodes{};
40 …QuerySyncObject(const std::list<QueryObjNode> &queryObjNodes, const std::vector<uint8_t> &prefixKe…
73 static int TransformToQueryNode(const QueryObjNode &objNode, QueryNode &node);
75 static int TransformValueToType(const QueryObjNode &objNode, std::vector<Type> &types);
77 static int TransformNodeType(const QueryObjNode &objNode, QueryNode &node);
H A Dquery_sync_object.cpp31 int SerializeDataObjNode(Parcel &parcel, const QueryObjNode &objNode) in SerializeDataObjNode()
55 int DeSerializeDataObjNode(Parcel &parcel, QueryObjNode &objNode) in DeSerializeDataObjNode()
131 for (const QueryObjNode &node : queryObjNodes_) { in CalculateIdentifyLen()
166 for (const QueryObjNode &node : queryObjNodes_) { in GetIdentify()
221 for (const QueryObjNode &node : context.queryObjNodes) { in SerializeData()
250 QueryObjNode operateNode; in SetCloudGid()
255 QueryObjNode objNode; in SetCloudGid()
322 QueryObjNode node; in DeSerializeData()
356 for (const QueryObjNode &node : queryObjNodes_) { in CalculateLen()
452 int QuerySyncObject::TransformToQueryNode(const QueryObjNode &objNode, QueryNode &node) in TransformToQueryNode()
[all …]
H A Dquery_object.cpp219 int QueryObject::ParseNode(const std::list<QueryObjNode>::iterator &iter) in ParseNode()
264 int QueryObject::ParseNodeByOperFlag(const std::list<QueryObjNode>::iterator &iter) in ParseNodeByOperFlag()
281 int QueryObject::CheckLinkerBefore(const std::list<QueryObjNode>::iterator &iter) const in CheckLinkerBefore()
294 int QueryObject::CheckEqualFormat(const std::list<QueryObjNode>::iterator &iter) const in CheckEqualFormat()
336 int QueryObject::CheckLinkerFormat(const std::list<QueryObjNode>::iterator &iter) const in CheckLinkerFormat()
364 int QueryObject::CheckSuggestIndexFormat(const std::list<QueryObjNode>::iterator &iter) const in CheckSuggestIndexFormat()
374 int QueryObject::CheckOrderByFormat(const std::list<QueryObjNode>::iterator &iter) in CheckOrderByFormat()
400 int QueryObject::CheckLimitFormat(const std::list<QueryObjNode>::iterator &iter) const in CheckLimitFormat()
413 … return std::none_of(queryObjNodes_.begin(), queryObjNodes_.end(), [&](const QueryObjNode &node) { in IsQueryOnlyByKey()
421 return std::any_of(queryObjNodes_.begin(), queryObjNodes_.end(), [&](const QueryObjNode &node) { in IsQueryByRange()
[all …]
H A Dsqlite_query_helper.cpp193 for (const QueryObjNode &objNode : queryObjNodes_) { in ParseQueryObjNodeToSQL()
259 for (const QueryObjNode &objNode : queryObjNodes_) { in ToGetCountSql()
371 for (const QueryObjNode &objNode : queryObjNodes_) { in BindSyncDataCheckStmt()
424 for (const QueryObjNode &objNode : queryObjNodes_) { in GetQuerySqlStatement()
464 for (const QueryObjNode &objNode : queryObjNodes_) { in GetQuerySqlStatement()
504 for (const QueryObjNode &objNode : queryObjNodes_) { in GetCountSqlStatement()
569 for (const QueryObjNode &objNode : queryObjNodes_) { in BindObjNodes()
653 std::string SqliteQueryHelper::MapLogicSymbolToSql(const QueryObjNode &queryNode) const in MapLogicSymbolToSql()
661 std::string SqliteQueryHelper::MapKeywordSymbolToSql(const QueryObjNode &queryNode) in MapKeywordSymbolToSql()
703 static bool IsNeedCastWitEmptyValue(const QueryObjNode &queryNode) in IsNeedCastWitEmptyValue()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_query_test.cpp29 bool CheckQueryContainer(Query &query, std::list<QueryObjNode> &checkList) in CheckQueryContainer()
31 …const std::list<QueryObjNode> queryList = GetQueryInfo::GetQueryExpression(query).GetQueryExpressi… in CheckQueryContainer()
59 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_BOOL, values}}; in CreateCheckList()
62 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_INTEGER, values}}; in CreateCheckList()
65 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_LONG, values}}; in CreateCheckList()
68 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_DOUBLE, values}}; in CreateCheckList()
71 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_STRING, values}}; in CreateCheckList()
74 … std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_INVALID, values}}; in CreateCheckList()
154 … std::list<QueryObjNode> result = CreateCheckList(QueryObjType::LIKE, TEST_FIELD_NAME, testValue);
171 std::list<QueryObjNode> result2{{QueryObjType::NOT_IN, TEST_FIELD_NAME,
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dquery_expression.cpp69 queryInfo_.emplace_back(QueryObjNode{queryOperType, formatedField, type, values}); in AssemblyQueryInfo()
204 queryInfo_.emplace_front(QueryObjNode{QueryObjType::QUERY_BY_KEY_PREFIX, std::string(), in QueryByPrefixKey()
217 queryInfo_.emplace_front(QueryObjNode{QueryObjType::KEY_RANGE, std::string(), in QueryByKeyRange()
231 queryInfo_.emplace_back(QueryObjNode{QueryObjType::SUGGEST_INDEX, indexName, in QueryBySuggestIndex()
244 …queryInfo_.emplace_front(QueryObjNode{QueryObjType::IN_KEYS, std::string(), QueryValueType::VALUE_… in InKeys()
249 const std::list<QueryObjNode> &QueryExpression::GetQueryExpression() in GetQueryExpression()
253 queryInfo_.emplace_back(QueryObjNode{QueryObjType::OPER_ILLEGAL}); in GetQueryExpression()
307 queryInfo_.emplace_back(QueryObjNode{QueryObjType::BEGIN_GROUP, std::string(), in BeginGroup()
318 queryInfo_.emplace_back(QueryObjNode{QueryObjType::END_GROUP, std::string(), in EndGroup()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/
H A Dquery_expression.h65 struct QueryObjNode { struct
143 const std::list<QueryObjNode> &GetQueryExpression();
168 std::list<QueryObjNode> queryInfo_;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_query_sync_test.cpp846 std::list<QueryObjNode> queryObjNodes;
848 queryObjNodes.push_back(QueryObjNode {QueryObjType::EQUALTO, "field_" + std::to_string(i),
1279 std::list<QueryObjNode> nodes;
1280 QueryObjNode node;
1301 std::list<QueryObjNode> nodes;
1302 QueryObjNode node;
H A Ddistributeddb_storage_sqlite_single_ver_natural_executor_test.cpp1181 QueryObjNode node;
1182 const std::list<QueryObjNode> queryObjNodes = {node};