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

Function getRelPropertyInfos

src/function/table/table_info.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static std::vector<PropertyInfo> getRelPropertyInfos(RelGroupCatalogEntry* entry) {
145 std::vector<PropertyInfo> infos;
146 for (auto& def : entry->getProperties()) {
147 if (def.getName() == InternalKeyword::ID) {
148 continue;
149 }
150 auto info = getInfo(def);
151 info.propertyID = entry->getPropertyID(def.getName());
152 info.extraInfo = std::make_unique<ExtraRelPropertyInfo>(
153 ExtendDirectionUtil::toString(entry->getStorageDirection()));
154 infos.push_back(std::move(info));
155 }
156 return infos;
157}
158
159static std::unique_ptr<TableFuncBindData> bindFunc(const main::ClientContext* context,
160 const TableFuncBindInput* input) {

Callers 1

bindFuncFunction · 0.85

Calls 6

getInfoFunction · 0.85
toStringFunction · 0.50
getPropertiesMethod · 0.45
getNameMethod · 0.45
getPropertyIDMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected