1 | #pragma once |
---|---|
2 | |
3 | #include <DataTypes/DataTypeString.h> |
4 | #include <Storages/System/IStorageSystemOneBlock.h> |
5 | #include <ext/shared_ptr_helper.h> |
6 | namespace DB |
7 | { |
8 | |
9 | class StorageSystemTableFunctions : public ext::shared_ptr_helper<StorageSystemTableFunctions>, |
10 | public IStorageSystemOneBlock<StorageSystemTableFunctions> |
11 | { |
12 | friend struct ext::shared_ptr_helper<StorageSystemTableFunctions>; |
13 | protected: |
14 | |
15 | using IStorageSystemOneBlock::IStorageSystemOneBlock; |
16 | |
17 | void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override; |
18 | |
19 | public: |
20 | |
21 | std::string getName() const override |
22 | { |
23 | return "SystemTableFunctions"; |
24 | } |
25 | |
26 | static NamesAndTypesList getNamesAndTypes(); |
27 | |
28 | }; |
29 | |
30 | } |
31 |