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

Function parse_def_source_column

src/expr-parser/src/parser.rs:1476–1485  ·  view source on GitHub ↗
(
        _ctx: CtxRef,
        input: ParseStream,
    )

Source from the content-addressed store, hash-verified

1474 }
1475
1476 fn parse_def_source_column(
1477 _ctx: CtxRef,
1478 input: ParseStream,
1479 ) -> syn::Result<(String, SqlColumnType)> {
1480 input.parse::<syn::Token![-]>()?;
1481 let column_name = input.parse::<syn::Ident>()?.to_string();
1482 input.parse::<syn::Token![:]>()?;
1483 let column_type = SqlColumnType::from_repr(&analyses::parse_column_type(input)?);
1484 Ok((column_name, column_type))
1485 }
1486
1487 syn::custom_keyword!(DefSource);
1488 syn::custom_keyword!(name);

Callers

nothing calls this directly

Calls 2

parse_column_typeFunction · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected