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

Method parse_alias

src/sql-parser/src/parser.rs:3428–3433  ·  view source on GitHub ↗
(parser: &mut Parser<'_>)

Source from the content-addressed store, hash-verified

3426 let mut bodies = vec![];
3427
3428 fn parse_alias(parser: &mut Parser<'_>) -> Result<Option<Ident>, ParserError> {
3429 parser
3430 .parse_keyword(AS)
3431 .then(|| parser.parse_identifier())
3432 .transpose()
3433 }
3434
3435 self.parse_comma_separated(|f| {
3436 match f.expect_one_of_keywords(&[SECRET, HEADERS, BODY])? {

Calls 2

parse_keywordMethod · 0.80
parse_identifierMethod · 0.80

Tested by

no test coverage detected