ClickHouse/src/Storages/System/StorageSystemCertificates.h
2022-05-14 17:40:50 -04:00

30 lines
683 B
C++

#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
class Cluster;
/** Implements system table 'certificates'
* that allows to obtain information about available certificates
* and their sources.
*/
class StorageSystemCertificates final : public IStorageSystemOneBlock<StorageSystemCertificates>
{
public:
std::string getName() const override { return "SystemCertificates"; }
static NamesAndTypesList getNamesAndTypes();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
};
}