MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / transformSinglePartQuery

Method transformSinglePartQuery

src/parser/transform/transform_query.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34SingleQuery Transformer::transformSinglePartQuery(CypherParser::OC_SinglePartQueryContext& ctx) {
35 auto singleQuery = SingleQuery();
36 for (auto& readingClause : ctx.oC_ReadingClause()) {
37 singleQuery.addReadingClause(transformReadingClause(*readingClause));
38 }
39 for (auto& updatingClause : ctx.oC_UpdatingClause()) {
40 singleQuery.addUpdatingClause(transformUpdatingClause(*updatingClause));
41 }
42 if (ctx.oC_Return()) {
43 singleQuery.setReturnClause(transformReturn(*ctx.oC_Return()));
44 }
45 return singleQuery;
46}
47
48QueryPart Transformer::transformQueryPart(CypherParser::IC_QueryPartContext& ctx) {
49 auto queryPart = QueryPart(transformWith(*ctx.oC_With()));

Callers

nothing calls this directly

Calls 4

setReturnClauseMethod · 0.80
SingleQueryClass · 0.50
addReadingClauseMethod · 0.45
addUpdatingClauseMethod · 0.45

Tested by

no test coverage detected