mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
26 lines
609 B
C++
26 lines
609 B
C++
#pragma once
|
|
|
|
#include <Access/IAccessEntity.h>
|
|
#include <Access/AccessRights.h>
|
|
#include <Access/GrantedRoles.h>
|
|
#include <Access/SettingsProfileElement.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct Role : public IAccessEntity
|
|
{
|
|
AccessRights access;
|
|
GrantedRoles granted_roles;
|
|
SettingsProfileElements settings;
|
|
|
|
bool equal(const IAccessEntity & other) const override;
|
|
std::shared_ptr<IAccessEntity> clone() const override { return cloneImpl<Role>(); }
|
|
static constexpr const Type TYPE = Type::ROLE;
|
|
Type getType() const override { return TYPE; }
|
|
};
|
|
|
|
using RolePtr = std::shared_ptr<const Role>;
|
|
}
|