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

Method parse_drop

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

Source from the content-addressed store, hash-verified

4849 }
4850
4851 fn parse_drop(&mut self) -> Result<Statement<Raw>, ParserStatementError> {
4852 if self.parse_keyword(OWNED) {
4853 self.parse_drop_owned()
4854 .map_parser_err(StatementKind::DropOwned)
4855 } else {
4856 self.parse_drop_objects()
4857 .map_parser_err(StatementKind::DropObjects)
4858 }
4859 }
4860
4861 fn parse_drop_objects(&mut self) -> Result<Statement<Raw>, ParserError> {
4862 let object_type = self.expect_object_type()?;

Callers 1

parse_statement_innerMethod · 0.80

Calls 4

parse_keywordMethod · 0.80
map_parser_errMethod · 0.80
parse_drop_ownedMethod · 0.80
parse_drop_objectsMethod · 0.80

Tested by

no test coverage detected