| 168 | } |
| 169 | |
| 170 | std::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 | |
| 184 | void ExportDB::executeInternal(ExecutionContext* context) { |
| 185 | const auto clientContext = context->clientContext; |
no test coverage detected