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

Method parse_if_not_exists

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

Source from the content-addressed store, hash-verified

4782 }
4783
4784 fn parse_if_not_exists(&mut self) -> Result<bool, ParserError> {
4785 if self.parse_keyword(IF) {
4786 self.expect_keywords(&[NOT, EXISTS])?;
4787 Ok(true)
4788 } else {
4789 Ok(false)
4790 }
4791 }
4792
4793 fn parse_alias(&mut self) -> Result<Option<Ident>, ParserError> {
4794 self.parse_keyword(AS)

Callers 13

parse_create_databaseMethod · 0.80
parse_create_schemaMethod · 0.80
parse_create_sourceMethod · 0.80
parse_create_sinkMethod · 0.80
parse_create_viewMethod · 0.80
parse_create_indexMethod · 0.80
parse_create_secretMethod · 0.80
parse_create_tableMethod · 0.80

Calls 2

parse_keywordMethod · 0.80
expect_keywordsMethod · 0.80

Tested by

no test coverage detected