mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +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;
|
|
};
|
|
}
|