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

Method parse_set_variable_to

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

Source from the content-addressed store, hash-verified

8010 }
8011
8012 fn parse_set_variable_to(&mut self) -> Result<SetVariableTo, ParserError> {
8013 if self.parse_keyword(DEFAULT) {
8014 Ok(SetVariableTo::Default)
8015 } else {
8016 Ok(SetVariableTo::Values(
8017 self.parse_comma_separated(Parser::parse_set_variable_value)?,
8018 ))
8019 }
8020 }
8021
8022 fn parse_set_variable_value(&mut self) -> Result<SetVariableValue, ParserError> {
8023 if let Some(value) = self.maybe_parse(Parser::parse_value) {

Callers 3

parse_alter_systemMethod · 0.80
parse_alter_roleMethod · 0.80
parse_setMethod · 0.80

Calls 3

parse_keywordMethod · 0.80
parse_comma_separatedMethod · 0.80
ValuesClass · 0.50

Tested by

no test coverage detected