mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
9fe47df2e8
Support syntax "SHOW CREATE USER ALL" and "SHOW GRANTS FOR ALL".
22 lines
438 B
C++
22 lines
438 B
C++
#pragma once
|
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
class ASTRolesOrUsersSet;
|
|
|
|
/** SHOW GRANTS [FOR user_name]
|
|
*/
|
|
class ASTShowGrantsQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
std::shared_ptr<ASTRolesOrUsersSet> for_roles;
|
|
|
|
String getID(char) const override;
|
|
ASTPtr clone() const override;
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
|
};
|
|
}
|