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