ClickHouse/src/Storages/System/StorageSystemContributors.h

32 lines
804 B
C++
Raw Normal View History

#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
2021-10-02 07:13:14 +00:00
#include <base/shared_ptr_helper.h>
namespace DB
{
class Context;
/** System table "contributors" with list of clickhouse contributors
*/
2021-06-15 19:55:21 +00:00
class StorageSystemContributors final : public shared_ptr_helper<StorageSystemContributors>,
public IStorageSystemOneBlock<StorageSystemContributors>
{
2021-06-15 19:55:21 +00:00
friend struct shared_ptr_helper<StorageSystemContributors>;
protected:
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
using IStorageSystemOneBlock::IStorageSystemOneBlock;
public:
std::string getName() const override
{
return "SystemContributors";
}
static NamesAndTypesList getNamesAndTypes();
};
}