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

Method parse_optional_in_cluster

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

Source from the content-addressed store, hash-verified

4382 }
4383
4384 fn parse_optional_in_cluster(&mut self) -> Result<Option<RawClusterName>, ParserError> {
4385 if self.parse_keywords(&[IN, CLUSTER]) {
4386 Ok(Some(self.parse_raw_ident()?))
4387 } else {
4388 Ok(None)
4389 }
4390 }
4391
4392 fn parse_create_role(&mut self) -> Result<Statement<Raw>, ParserError> {
4393 self.expect_keyword(ROLE)?;

Callers 4

parse_create_sourceMethod · 0.80
parse_create_sinkMethod · 0.80
parse_create_indexMethod · 0.80
parse_showMethod · 0.80

Calls 2

parse_keywordsMethod · 0.80
parse_raw_identMethod · 0.80

Tested by

no test coverage detected