mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
26 lines
852 B
C++
26 lines
852 B
C++
|
#pragma once
|
||
|
|
||
|
#include <ext/shared_ptr_helper.h>
|
||
|
#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 ext::shared_ptr_helper<StorageSystemPrivileges>, public IStorageSystemOneBlock<StorageSystemPrivileges>
|
||
|
{
|
||
|
public:
|
||
|
std::string getName() const override { return "SystemPrivileges"; }
|
||
|
static NamesAndTypesList getNamesAndTypes();
|
||
|
static const std::vector<std::pair<String, Int8>> & getAccessTypeEnumValues();
|
||
|
|
||
|
protected:
|
||
|
friend struct ext::shared_ptr_helper<StorageSystemPrivileges>;
|
||
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
||
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo &) const override;
|
||
|
};
|
||
|
|
||
|
}
|