mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
22 lines
588 B
C++
22 lines
588 B
C++
#include <Storages/System/StorageSystemTableFunctions.h>
|
|
|
|
#include <TableFunctions/TableFunctionFactory.h>
|
|
namespace DB
|
|
{
|
|
|
|
NamesAndTypesList StorageSystemTableFunctions::getNamesAndTypes()
|
|
{
|
|
return {{"name", std::make_shared<DataTypeString>()}};
|
|
}
|
|
|
|
void StorageSystemTableFunctions::fillData(MutableColumns & res_columns, const Context &, const SelectQueryInfo &) const
|
|
{
|
|
const auto & functions_names = TableFunctionFactory::instance().getAllRegisteredNames();
|
|
for (const auto & function_name : functions_names)
|
|
{
|
|
res_columns[0]->insert(function_name);
|
|
}
|
|
}
|
|
|
|
}
|