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

Method parse_validate

src/sql-parser/src/parser.rs:2579–2585  ·  view source on GitHub ↗

Parse a `VALIDATE` statement

(&mut self)

Source from the content-addressed store, hash-verified

2577
2578 /// Parse a `VALIDATE` statement
2579 fn parse_validate(&mut self) -> Result<Statement<Raw>, ParserError> {
2580 self.expect_keyword(CONNECTION)?;
2581 let name = self.parse_raw_name()?;
2582 Ok(Statement::ValidateConnection(ValidateConnectionStatement {
2583 name,
2584 }))
2585 }
2586
2587 fn parse_create_connection(&mut self) -> Result<Statement<Raw>, ParserError> {
2588 self.expect_keyword(CONNECTION)?;

Callers 1

parse_statement_innerMethod · 0.80

Calls 2

expect_keywordMethod · 0.80
parse_raw_nameMethod · 0.80

Tested by

no test coverage detected