1#pragma once
2
3#include <ext/shared_ptr_helper.h>
4#include <Storages/System/IStorageSystemOneBlock.h>
5
6
7namespace DB
8{
9
10class Context;
11
12
13/** Implements `functions`system table, which allows you to get a list
14 * all normal and aggregate functions.
15 */
16class StorageSystemFunctions : public ext::shared_ptr_helper<StorageSystemFunctions>, public IStorageSystemOneBlock<StorageSystemFunctions>
17{
18 friend struct ext::shared_ptr_helper<StorageSystemFunctions>;
19public:
20 std::string getName() const override { return "SystemFunctions"; }
21
22 static NamesAndTypesList getNamesAndTypes();
23
24protected:
25 using IStorageSystemOneBlock::IStorageSystemOneBlock;
26
27 void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
28};
29
30}
31