ClickHouse/src/Parsers/ASTShowGrantsQuery.h
Vitaly Baranov 9fe47df2e8 Support multiple users/roles in SHOW CREATE USER(ROLE, etc.) and SHOW GRANTS FOR commands.
Support syntax "SHOW CREATE USER ALL" and "SHOW GRANTS FOR ALL".
2020-06-15 22:07:47 +03:00

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;
};
}