ClickHouse/dbms/Parsers/ParserShowGrantsQuery.h

18 lines
342 B
C++
Raw Normal View History

#pragma once
#include <Parsers/IParserBase.h>
namespace DB
{
/** Parses queries like
* SHOW GRANTS [FOR user_name]
*/
class ParserShowGrantsQuery : public IParserBase
{
protected:
const char * getName() const override { return "SHOW GRANTS query"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
};
}