Parse a `GRANT` statement, assuming that the `GRANT` token has already been consumed.
(&mut self)
| 9542 | /// Parse a `GRANT` statement, assuming that the `GRANT` token |
| 9543 | /// has already been consumed. |
| 9544 | fn parse_grant(&mut self) -> Result<Statement<Raw>, ParserStatementError> { |
| 9545 | match self.parse_privilege_specification() { |
| 9546 | Some(privileges) => self |
| 9547 | .parse_grant_privilege(privileges) |
| 9548 | .map_parser_err(StatementKind::GrantPrivileges), |
| 9549 | None => self |
| 9550 | .parse_grant_role() |
| 9551 | .map_parser_err(StatementKind::GrantRole), |
| 9552 | } |
| 9553 | } |
| 9554 | |
| 9555 | /// Parse a `GRANT PRIVILEGE` statement, assuming that the `GRANT` token |
| 9556 | /// and all privileges have already been consumed. |
no test coverage detected