MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_revoke

Method parse_revoke

src/sql-parser/src/parser.rs:9586–9595  ·  view source on GitHub ↗

Parse a `REVOKE` statement, assuming that the `REVOKE` token has already been consumed.

(&mut self)

Source from the content-addressed store, hash-verified

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.

Callers 1

parse_statement_innerMethod · 0.80

Calls 4

map_parser_errMethod · 0.80
parse_revoke_roleMethod · 0.80

Tested by

no test coverage detected