#include #include #include #include namespace DB { ColumnsDescription StorageSystemDatabaseEngines::getColumnsDescription() { return ColumnsDescription { {"name", std::make_shared(), "The name of database engine."}, }; } void StorageSystemDatabaseEngines::fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const { for (const auto & [engine, _] : DatabaseFactory::instance().getDatabaseEngines()) { int i = 0; res_columns[i++]->insert(engine); } } }