mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
25 lines
697 B
C++
25 lines
697 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Access/IAccessEntity.h>
|
||
|
#include <Access/ExtendedRoleSet.h>
|
||
|
#include <Access/SettingsProfileElement.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
/// Represents a settings profile created by command
|
||
|
/// CREATE SETTINGS PROFILE name SETTINGS x=value MIN=min MAX=max READONLY... TO roles
|
||
|
struct SettingsProfile : public IAccessEntity
|
||
|
{
|
||
|
SettingsProfileElements elements;
|
||
|
|
||
|
/// Which roles or users should use this settings profile.
|
||
|
ExtendedRoleSet to_roles;
|
||
|
|
||
|
bool equal(const IAccessEntity & other) const override;
|
||
|
std::shared_ptr<IAccessEntity> clone() const override { return cloneImpl<SettingsProfile>(); }
|
||
|
};
|
||
|
|
||
|
using SettingsProfilePtr = std::shared_ptr<const SettingsProfile>;
|
||
|
}
|