Parse a `REVOKE` statement, assuming that the `REVOKE` token has already been consumed.
(&mut self)
| 9584 | /// Parse a `REVOKE` statement, assuming that the `REVOKE` token |
| 9585 | /// has already been consumed. |
| 9586 | fn parse_revoke(&mut self) -> Result<Statement<Raw>, ParserStatementError> { |
| 9587 | match self.parse_privilege_specification() { |
| 9588 | Some(privileges) => self |
| 9589 | .parse_revoke_privilege(privileges) |
| 9590 | .map_parser_err(StatementKind::RevokePrivileges), |
| 9591 | None => self |
| 9592 | .parse_revoke_role() |
| 9593 | .map_parser_err(StatementKind::RevokeRole), |
| 9594 | } |
| 9595 | } |
| 9596 | |
| 9597 | /// Parse a `REVOKE PRIVILEGE` statement, assuming that the `REVOKE` token |
| 9598 | /// and all privileges have already been consumed. |
no test coverage detected