2020-05-12 23:36:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
/// Implements `current_roles` system table, which allows you to get information about current roles.
|
2022-05-03 06:43:28 +00:00
|
|
|
class StorageSystemCurrentRoles final : public IStorageSystemOneBlock<StorageSystemCurrentRoles>
|
2020-05-12 23:36:39 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemCurrentRoles"; }
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
2021-04-10 23:33:54 +00:00
|
|
|
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
|
2020-05-12 23:36:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|