| 101 | { |
| 102 | |
| 103 | std::string formatTypeMap(const TableJoin::NameToTypeMap & target, const TableJoin::NameToTypeMap & source) |
| 104 | { |
| 105 | std::vector<std::string> text; |
| 106 | for (const auto & [k, v] : target) |
| 107 | { |
| 108 | auto src_type_it = source.find(k); |
| 109 | std::string src_type_name = src_type_it != source.end() ? src_type_it->second->getName() : ""; |
| 110 | text.push_back(fmt::format("{} : {} -> {}", k, src_type_name, v->getName())); |
| 111 | } |
| 112 | return fmt::format("{}", fmt::join(text, ", ")); |
| 113 | } |
| 114 | |
| 115 | } |
| 116 |