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

Method parse_optional_up_to

src/sql-parser/src/parser.rs:8708–8715  ·  view source on GitHub ↗

Parse `UP TO`, if present

(&mut self)

Source from the content-addressed store, hash-verified

8706
8707 /// Parse `UP TO`, if present
8708 fn parse_optional_up_to(&mut self) -> Result<Option<Expr<Raw>>, ParserError> {
8709 if self.parse_keyword(UP) {
8710 self.expect_keyword(TO)?;
8711 self.parse_expr().map(Some)
8712 } else {
8713 Ok(None)
8714 }
8715 }
8716
8717 /// Parse `AS OF`, if present.
8718 ///

Callers 1

parse_subscribeMethod · 0.80

Calls 4

parse_keywordMethod · 0.80
expect_keywordMethod · 0.80
parse_exprMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected