2018-03-12 18:38:00 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
2018-03-12 18:38:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
2018-03-13 23:09:26 +00:00
|
|
|
/** Information about macros for introspection.
|
2018-03-12 18:38:00 +00:00
|
|
|
*/
|
2022-05-03 06:43:28 +00:00
|
|
|
class StorageSystemMacros final : public IStorageSystemOneBlock<StorageSystemMacros>
|
2018-03-12 18:38:00 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemMacros"; }
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
2018-03-12 18:38:00 +00:00
|
|
|
|
|
|
|
protected:
|
2018-07-24 14:28:56 +00:00
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
|
2018-03-12 18:38:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|