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

Method bindRelOutput

src/function/gds/gds.cpp:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145std::shared_ptr<binder::Expression> GDSFunction::bindRelOutput(const TableFuncBindInput& bindInput,
146 const std::vector<catalog::TableCatalogEntry*>& relEntries,
147 std::shared_ptr<NodeExpression> srcNode, std::shared_ptr<NodeExpression> dstNode,
148 const std::optional<std::string>& name, const std::optional<uint64_t>& yieldVariableIdx) {
149 std::string relColumnName = name.value_or(REL_COLUMN_NAME);
150 StringUtils::toLower(relColumnName);
151 if (!bindInput.yieldVariables.empty()) {
152 relColumnName =
153 bindColumnName(bindInput.yieldVariables[yieldVariableIdx.value_or(0)], relColumnName);
154 }
155 auto rel = bindInput.binder->createNonRecursiveQueryRel(relColumnName, relEntries, srcNode,
156 dstNode, RelDirectionType::SINGLE, {});
157 bindInput.binder->addToScope(REL_COLUMN_NAME, rel);
158 return rel;
159}
160
161std::shared_ptr<Expression> GDSFunction::bindNodeOutput(const TableFuncBindInput& bindInput,
162 const std::vector<TableCatalogEntry*>& nodeEntries, const std::optional<std::string>& name,

Callers

nothing calls this directly

Calls 3

addToScopeMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected