1#pragma once
2
3#include <DataTypes/DataTypeString.h>
4#include <ext/shared_ptr_helper.h>
5#include <Storages/System/IStorageSystemOneBlock.h>
6
7
8namespace DB
9{
10
11class Context;
12
13
14/** Information about macros for introspection.
15 */
16class StorageSystemMacros : public ext::shared_ptr_helper<StorageSystemMacros>, public IStorageSystemOneBlock<StorageSystemMacros>
17{
18 friend struct ext::shared_ptr_helper<StorageSystemMacros>;
19public:
20 std::string getName() const override { return "SystemMacros"; }
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