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

Method parse_if_exists

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

Source from the content-addressed store, hash-verified

4773 }
4774
4775 fn parse_if_exists(&mut self) -> Result<bool, ParserError> {
4776 if self.parse_keyword(IF) {
4777 self.expect_keyword(EXISTS)?;
4778 Ok(true)
4779 } else {
4780 Ok(false)
4781 }
4782 }
4783
4784 fn parse_if_not_exists(&mut self) -> Result<bool, ParserError> {
4785 if self.parse_keyword(IF) {

Callers 10

parse_drop_objectsMethod · 0.80
parse_alter_objectMethod · 0.80
parse_alter_clusterMethod · 0.80
parse_alter_sourceMethod · 0.80
parse_alter_indexMethod · 0.80
parse_alter_secretMethod · 0.80
parse_alter_sinkMethod · 0.80
parse_alter_viewsMethod · 0.80
parse_alter_schemaMethod · 0.80

Calls 2

parse_keywordMethod · 0.80
expect_keywordMethod · 0.80

Tested by

no test coverage detected