1 | #include <Storages/System/StorageSystemTableFunctions.h> |
---|---|
2 | |
3 | #include <TableFunctions/TableFunctionFactory.h> |
4 | namespace DB |
5 | { |
6 | |
7 | NamesAndTypesList StorageSystemTableFunctions::getNamesAndTypes() |
8 | { |
9 | return {{"name", std::make_shared<DataTypeString>()}}; |
10 | } |
11 | |
12 | void StorageSystemTableFunctions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const |
13 | { |
14 | const auto & functions_names = TableFunctionFactory::instance().getAllRegisteredNames(); |
15 | for (const auto & function_name : functions_names) |
16 | { |
17 | res_columns[0]->insert(function_name); |
18 | } |
19 | } |
20 | |
21 | } |
22 |