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

Method parse_source_option

src/sql-parser/src/parser.rs:3319–3332  ·  view source on GitHub ↗

Parses a single valid option in the WITH block of a create source

(&mut self)

Source from the content-addressed store, hash-verified

3317
3318 /// Parses a single valid option in the WITH block of a create source
3319 fn parse_source_option(&mut self) -> Result<CreateSourceOption<Raw>, ParserError> {
3320 let name = self.parse_source_option_name()?;
3321 if name == CreateSourceOptionName::RetainHistory {
3322 let _ = self.consume_token(&Token::Eq);
3323 return Ok(CreateSourceOption {
3324 name,
3325 value: self.parse_option_retain_history()?,
3326 });
3327 }
3328 Ok(CreateSourceOption {
3329 name,
3330 value: self.parse_optional_option_value()?,
3331 })
3332 }
3333
3334 fn parse_create_webhook_source(
3335 &mut self,

Callers

nothing calls this directly

Calls 4

consume_tokenMethod · 0.80

Tested by

no test coverage detected