| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <Parsers/IParserBase.h> |
| 4 | |
| 5 | |
| 6 | namespace DB |
| 7 | { |
| 8 | /** Parses a string like this: |
| 9 | * {role|CURRENT_USER} [,...] | NONE | ALL | ALL EXCEPT {role|CURRENT_USER} [,...] |
| 10 | */ |
| 11 | class ParserRoleList : public IParserBase |
| 12 | { |
| 13 | protected: |
| 14 | const char * getName() const { return "RoleList"; } |
| 15 | bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected); |
| 16 | }; |
| 17 | |
| 18 | } |
| 19 |