ClickHouse/src/Parsers/ASTShowGrantsQuery.h

22 lines
438 B
C++
Raw Normal View History

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