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

Function getPropertyNames

src/binder/bind/bind_graph_pattern.cpp:120–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static std::vector<std::string> getPropertyNames(const std::vector<TableCatalogEntry*>& entries) {
121 std::vector<std::string> result;
122 case_insensitve_set_t propertyNamesSet;
123 for (auto& entry : entries) {
124 for (auto& property : entry->getProperties()) {
125 if (propertyNamesSet.contains(property.getName())) {
126 continue;
127 }
128 propertyNamesSet.insert(property.getName());
129 result.push_back(property.getName());
130 }
131 }
132 return result;
133}
134
135static std::shared_ptr<PropertyExpression> createPropertyExpression(const std::string& propertyName,
136 const std::string& uniqueVariableName, const std::string& rawVariableName,

Callers 2

createQueryNodeMethod · 0.70

Calls 5

getPropertiesMethod · 0.45
containsMethod · 0.45
getNameMethod · 0.45
insertMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected