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

Method detailsToString

src/binder/expression/rel_expression.cpp:28–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28std::string RelExpression::detailsToString() const {
29 std::string result = toString();
30 switch (relType) {
31 case QueryRelType::SHORTEST: {
32 result += "SHORTEST";
33 } break;
34 case QueryRelType::ALL_SHORTEST: {
35 result += "ALL SHORTEST";
36 } break;
37 case QueryRelType::WEIGHTED_SHORTEST: {
38 result += "WEIGHTED SHORTEST";
39 } break;
40 case QueryRelType::ALL_WEIGHTED_SHORTEST: {
41 result += "ALL WEIGHTED SHORTEST";
42 } break;
43 default:
44 break;
45 }
46 if (QueryRelTypeUtils::isRecursive(relType)) {
47 result += std::to_string(recursiveInfo->bindData->lowerBound);
48 result += "..";
49 result += std::to_string(recursiveInfo->bindData->upperBound);
50 }
51 return result;
52}
53
54std::vector<ExtendDirection> RelExpression::getExtendDirections() const {
55 std::vector<ExtendDirection> ret;

Callers 1

toStringMethod · 0.80

Calls 2

isRecursiveFunction · 0.85
toStringFunction · 0.50

Tested by

no test coverage detected