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