| 67 | } |
| 68 | |
| 69 | bool DatabaseMySQL::empty() const |
| 70 | { |
| 71 | std::lock_guard<std::mutex> lock(mutex); |
| 72 | |
| 73 | fetchTablesIntoLocalCache(getContext()); |
| 74 | |
| 75 | if (local_tables_cache.empty()) |
| 76 | return true; |
| 77 | |
| 78 | for (const auto & [table_name, storage_info] : local_tables_cache) |
| 79 | if (!remove_or_detach_tables.count(table_name)) |
| 80 | return false; |
| 81 | |
| 82 | return true; |
| 83 | } |
| 84 | |
| 85 | DatabaseTablesIteratorPtr DatabaseMySQL::getTablesIterator(ContextPtr local_context, const FilterByNameFunction & filter_by_table_name) |
| 86 | { |
no test coverage detected