Parses a single valid option in the WITH block of a create source
(&mut self)
| 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, |
nothing calls this directly
no test coverage detected