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

Method parse_create_role

src/sql-parser/src/parser.rs:4392–4398  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

4390 }
4391
4392 fn parse_create_role(&mut self) -> Result<Statement<Raw>, ParserError> {
4393 self.expect_keyword(ROLE)?;
4394 let name = self.parse_identifier()?;
4395 let _ = self.parse_keyword(WITH);
4396 let options = self.parse_role_attributes()?;
4397 Ok(Statement::CreateRole(CreateRoleStatement { name, options }))
4398 }
4399
4400 fn parse_role_attributes(&mut self) -> Result<Vec<RoleAttribute>, ParserError> {
4401 let mut options = vec![];

Callers 1

parse_createMethod · 0.80

Calls 5

CreateRoleClass · 0.85
expect_keywordMethod · 0.80
parse_identifierMethod · 0.80
parse_keywordMethod · 0.80
parse_role_attributesMethod · 0.80

Tested by

no test coverage detected