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

Method parse_connection_option_unified

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

Source from the content-addressed store, hash-verified

3058 }
3059
3060 fn parse_connection_option_unified(&mut self) -> Result<ConnectionOption<Raw>, ParserError> {
3061 let name = self.parse_connection_option_name()?;
3062 let value = match name {
3063 ConnectionOptionName::AwsConnection => Some(self.parse_object_option_value()?),
3064 ConnectionOptionName::AwsPrivatelink => Some(self.parse_default_aws_privatelink()?),
3065 ConnectionOptionName::Broker => Some(self.parse_kafka_broker()?),
3066 ConnectionOptionName::Brokers => Some(WithOptionValue::Sequence(
3067 self.parse_list_value(Parser::parse_kafka_broker_or_matching_rule)?,
3068 )),
3069 ConnectionOptionName::GcpConnection => Some(self.parse_object_option_value()?),
3070 ConnectionOptionName::SshTunnel => Some(self.parse_object_option_value()?),
3071 _ => self.parse_optional_option_value()?,
3072 };
3073 Ok(ConnectionOption { name, value })
3074 }
3075
3076 fn parse_create_subsource(&mut self) -> Result<Statement<Raw>, ParserError> {
3077 self.expect_keyword(SUBSOURCE)?;

Callers 1

Tested by

no test coverage detected