mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
21 lines
408 B
C++
21 lines
408 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Parsers/ASTQueryWithOutput.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
/** SHOW GRANTS [FOR user_name]
|
||
|
*/
|
||
|
class ASTShowGrantsQuery : public ASTQueryWithOutput
|
||
|
{
|
||
|
public:
|
||
|
String name;
|
||
|
bool current_user = false;
|
||
|
|
||
|
String getID(char) const override;
|
||
|
ASTPtr clone() const override;
|
||
|
void formatQueryImpl(const FormatSettings & settings, FormatState &, FormatStateStacked) const override;
|
||
|
};
|
||
|
}
|