mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 19:14:30 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
38 lines
941 B
C++
38 lines
941 B
C++
#pragma once
|
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class ASTSettingsProfileElements;
|
|
|
|
|
|
/** CREATE ROLE [IF NOT EXISTS | OR REPLACE] name
|
|
* [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]
|
|
*
|
|
* ALTER ROLE [IF EXISTS] name
|
|
* [RENAME TO new_name]
|
|
* [SETTINGS variable [= value] [MIN [=] min_value] [MAX [=] max_value] [READONLY|WRITABLE] | PROFILE 'profile_name'] [,...]
|
|
*/
|
|
class ASTCreateRoleQuery : public IAST
|
|
{
|
|
public:
|
|
bool alter = false;
|
|
bool attach = false;
|
|
|
|
bool if_exists = false;
|
|
bool if_not_exists = false;
|
|
bool or_replace = false;
|
|
|
|
String name;
|
|
String new_name;
|
|
|
|
std::shared_ptr<ASTSettingsProfileElements> settings;
|
|
|
|
String getID(char) const override;
|
|
ASTPtr clone() const override;
|
|
void formatImpl(const FormatSettings & format, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
}
|