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

Function getResultColumns

src/function/gds/gds.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static expression_vector getResultColumns(const std::string& cypher, ClientContext* context) {
38 auto parsedStatements = parser::Parser::parseQuery(cypher);
39 DASSERT(parsedStatements.size() == 1);
40 auto binder = Binder(context);
41 auto boundStatement = binder.bind(*parsedStatements[0]);
42 return boundStatement->getStatementResult()->getColumns();
43}
44
45static void validateNodeProjected(const table_id_set_t& connectedNodeTableIDSet,
46 const table_id_set_t& projectedNodeIDSet, const std::string& relName, Catalog* catalog,

Callers 2

bindNodeEntryFunction · 0.85
bindRelEntryFunction · 0.85

Calls 5

bindMethod · 0.80
BinderClass · 0.50
sizeMethod · 0.45
getColumnsMethod · 0.45
getStatementResultMethod · 0.45

Tested by

no test coverage detected