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

Method parse_index_option

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

Source from the content-addressed store, hash-verified

4340 }
4341
4342 fn parse_index_option(&mut self) -> Result<IndexOption<Raw>, ParserError> {
4343 let name = self.parse_index_option_name()?;
4344 let value = match name {
4345 IndexOptionName::RetainHistory => self.parse_option_retain_history(),
4346 }?;
4347 Ok(IndexOption { name, value })
4348 }
4349
4350 fn parse_raw_ident(&mut self) -> Result<RawClusterName, ParserError> {
4351 if self.consume_token(&Token::LBracket) {

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected