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

Method getAllPatterns

src/binder/query/query_graph.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179std::vector<std::shared_ptr<NodeOrRelExpression>> QueryGraph::getAllPatterns() const {
180 std::vector<std::shared_ptr<NodeOrRelExpression>> patterns;
181 for (auto& p : queryNodes) {
182 patterns.push_back(p);
183 }
184 for (auto& p : queryRels) {
185 patterns.push_back(p);
186 }
187 return patterns;
188}
189
190void QueryGraph::addQueryNode(std::shared_ptr<NodeExpression> queryNode) {
191 // Note that a node may be added multiple times. We should only keep one of it.

Callers 3

getColumnDataExprsFunction · 0.80
validateHintCompletenessFunction · 0.80
rewriteMatchPatternMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected