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

Method parse_select_statement

src/sql-parser/src/parser.rs:7490–7495  ·  view source on GitHub ↗

Parses a SELECT (or WITH, VALUES, TABLE) statement with optional AS OF.

(&mut self)

Source from the content-addressed store, hash-verified

7488
7489 /// Parses a SELECT (or WITH, VALUES, TABLE) statement with optional AS OF.
7490 fn parse_select_statement(&mut self) -> Result<SelectStatement<Raw>, ParserError> {
7491 Ok(SelectStatement {
7492 query: self.parse_query()?,
7493 as_of: self.parse_optional_as_of()?,
7494 })
7495 }
7496
7497 /// Parse a query expression, i.e. a `SELECT` statement optionally
7498 /// preceded with some `WITH` CTE declarations and optionally followed

Callers 3

parse_statement_innerMethod · 0.80
parse_explaineeMethod · 0.80

Calls 2

parse_optional_as_ofMethod · 0.80
parse_queryMethod · 0.45

Tested by

no test coverage detected