mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
32 lines
730 B
C++
32 lines
730 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class ASTExtendedRoleSet;
|
|
|
|
/** SET ROLE {DEFAULT | NONE | role [,...] | ALL | ALL EXCEPT role [,...]}
|
|
* SET DEFAULT ROLE {NONE | role [,...] | ALL | ALL EXCEPT role [,...]} TO {user|CURRENT_USER} [,...]
|
|
*/
|
|
class ASTSetRoleQuery : public IAST
|
|
{
|
|
public:
|
|
enum class Kind
|
|
{
|
|
SET_ROLE,
|
|
SET_ROLE_DEFAULT,
|
|
SET_DEFAULT_ROLE,
|
|
};
|
|
Kind kind = Kind::SET_ROLE;
|
|
|
|
std::shared_ptr<ASTExtendedRoleSet> roles;
|
|
std::shared_ptr<ASTExtendedRoleSet> to_users;
|
|
|
|
String getID(char) const override;
|
|
ASTPtr clone() const override;
|
|
void formatImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
}
|