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

Method getMacroNames

src/catalog/catalog.cpp:515–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515std::vector<std::string> Catalog::getMacroNames(const Transaction* transaction) const {
516 std::vector<std::string> macroNames;
517 for (auto& [_, function] : macros->getEntries(transaction)) {
518 DASSERT(function->getType() == CatalogEntryType::SCALAR_MACRO_ENTRY);
519 macroNames.push_back(function->getName());
520 }
521 return macroNames;
522}
523
524void Catalog::dropMacro(Transaction* transaction, std::string& name) {
525 if (!containsMacro(transaction, name)) {

Callers 2

printSchemaMethod · 0.80
getSchemaCypherFunction · 0.80

Calls 4

getEntriesMethod · 0.45
getTypeMethod · 0.45
push_backMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected