#include #include #include #include namespace DB { NamesAndTypesList StorageSystemTableEngines::getNamesAndTypes() { return {{"name", std::make_shared()}, {"supports_settings", std::make_shared()}, {"supports_skipping_indices", std::make_shared()}, {"supports_sort_order", std::make_shared()}, {"supports_ttl", std::make_shared()}, {"supports_replication", std::make_shared()}, {"supports_deduplication", std::make_shared()}}; } void StorageSystemTableEngines::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const { for (const auto & pair : StorageFactory::instance().getAllStorages()) { res_columns[0]->insert(pair.first); res_columns[1]->insert(pair.second.features.supports_settings); res_columns[2]->insert(pair.second.features.supports_skipping_indices); res_columns[3]->insert(pair.second.features.supports_sort_order); res_columns[4]->insert(pair.second.features.supports_ttl); res_columns[5]->insert(pair.second.features.supports_replication); res_columns[6]->insert(pair.second.features.supports_deduplication); } } }