blob: ceaf2f586cbcf00ddb0070e04626b859085f68de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#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;
QueryKind getQueryKind() const override { return QueryKind::Show; }
};
}
|