ClickHouse/src/Storages/System/StorageSystemErrors.h
Robert Schulze 777b5bc15b
Don't let storages inherit from boost::noncopyable
... IStorage has deleted copy ctor / assignment already
2022-05-03 09:07:08 +02:00

30 lines
655 B
C++

#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/**
* Implements the `errors` system table, which shows the error code and the number of times it happens
* (i.e. Exception with this code had been thrown).
*/
class StorageSystemErrors final : public IStorageSystemOneBlock<StorageSystemErrors>
{
public:
std::string getName() const override { return "SystemErrors"; }
static NamesAndTypesList getNamesAndTypes();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const override;
};
}