ClickHouse/src/Storages/System/StorageSystemEvents.h
Kseniia Sumarokova 08ef4d015c
Minor change
2023-07-30 13:36:52 +02:00

29 lines
657 B
C++

#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/** Implements `events` system table, which allows you to obtain information for profiling.
*/
class StorageSystemEvents final : public IStorageSystemOneBlock<StorageSystemEvents>
{
public:
std::string getName() const override { return "SystemEvents"; }
static NamesAndTypesList getNamesAndTypes();
static NamesAndAliases getNamesAndAliases();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
};
}