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

Method parse_table_option

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

Source from the content-addressed store, hash-verified

4325 }
4326
4327 fn parse_table_option(&mut self) -> Result<TableOption<Raw>, ParserError> {
4328 let name = self.parse_table_option_name()?;
4329 let value = match name {
4330 TableOptionName::PartitionBy => self.parse_optional_option_value(),
4331 TableOptionName::RetainHistory => self.parse_option_retain_history(),
4332 TableOptionName::RedactedTest => self.parse_optional_option_value(),
4333 }?;
4334 Ok(TableOption { name, value })
4335 }
4336
4337 fn parse_index_option_name(&mut self) -> Result<IndexOptionName, ParserError> {
4338 self.expect_keywords(&[RETAIN, HISTORY])?;

Callers

nothing calls this directly

Tested by

no test coverage detected