ClickHouse/src/Storages/System/StorageSystemPrivileges.h

24 lines
690 B
C++
Raw Normal View History

2020-05-12 21:46:14 +00:00
#pragma once
#include <Storages/System/IStorageSystemOneBlock.h>
namespace DB
{
class Context;
/// Implements `privileges` system table, which allows you to get information about access types.
class StorageSystemPrivileges final : public IStorageSystemOneBlock<StorageSystemPrivileges>
2020-05-12 21:46:14 +00:00
{
public:
std::string getName() const override { return "SystemPrivileges"; }
static NamesAndTypesList getNamesAndTypes();
2022-02-01 21:55:20 +00:00
static const std::vector<std::pair<String, Int16>> & getAccessTypeEnumValues();
2020-05-12 21:46:14 +00:00
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
2020-05-12 21:46:14 +00:00
};
}