ClickHouse/src/Storages/System/StorageSystemFetches.h

29 lines
747 B
C++
Raw Normal View History

2020-10-26 16:38:35 +00:00
#pragma once
2020-10-27 12:24:10 +00:00
2020-10-26 16:38:35 +00:00
#include <ext/shared_ptr_helper.h>
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
2020-10-27 12:47:42 +00:00
/// system.fetches table. Takes data from context.getReplicatedFetchList()
2020-10-26 16:38:35 +00:00
class StorageSystemFetches final : public ext::shared_ptr_helper<StorageSystemFetches>, public IStorageSystemOneBlock<StorageSystemFetches >
{
friend struct ext::shared_ptr_helper<StorageSystemFetches>;
public:
std::string getName() const override { return "SystemFetches"; }
static NamesAndTypesList getNamesAndTypes();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
};
}