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

Method parse_create_connection_option

src/sql-parser/src/parser.rs:2668–2676  ·  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

2666
2667 /// Parses a single valid option in the WITH block of a create source
2668 fn parse_create_connection_option(
2669 &mut self,
2670 ) -> Result<CreateConnectionOption<Raw>, ParserError> {
2671 let name = self.parse_create_connection_option_name()?;
2672 Ok(CreateConnectionOption {
2673 name,
2674 value: self.parse_optional_option_value()?,
2675 })
2676 }
2677
2678 fn parse_default_aws_privatelink(&mut self) -> Result<WithOptionValue<Raw>, ParserError> {
2679 let _ = self.consume_token(&Token::Eq);

Callers

nothing calls this directly

Tested by

no test coverage detected