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

Function getIndexCypher

src/processor/operator/simple/export_db.cpp:170–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170std::string getIndexCypher(ClientContext* clientContext, const FileScanInfo& exportFileInfo) {
171 stringstream ss;
172 IndexToCypherInfo info{clientContext, exportFileInfo};
173 auto transaction = Transaction::Get(*clientContext);
174 auto catalog = Catalog::Get(*clientContext);
175 for (auto entry : catalog->getIndexEntries(transaction)) {
176 auto indexCypher = entry->toCypher(info);
177 if (!indexCypher.empty()) {
178 ss << indexCypher << std::endl;
179 }
180 }
181 return ss.str();
182}
183
184void ExportDB::executeInternal(ExecutionContext* context) {
185 const auto clientContext = context->clientContext;

Callers 1

executeInternalMethod · 0.85

Calls 3

getIndexEntriesMethod · 0.80
toCypherMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected