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

Method parse_subsource_references

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

Source from the content-addressed store, hash-verified

3245 }
3246
3247 fn parse_subsource_references(&mut self) -> Result<ExternalReferenceExport, ParserError> {
3248 let reference = self.parse_item_name()?;
3249 let subsource = if self.parse_one_of_keywords(&[AS, INTO]).is_some() {
3250 Some(self.parse_item_name()?)
3251 } else {
3252 None
3253 };
3254
3255 Ok(ExternalReferenceExport {
3256 reference,
3257 alias: subsource,
3258 })
3259 }
3260
3261 /// Parses the column section of a CREATE SOURCE statement which can be
3262 /// empty or a comma-separated list of column identifiers and a single key

Callers

nothing calls this directly

Calls 3

parse_item_nameMethod · 0.80
is_someMethod · 0.80
parse_one_of_keywordsMethod · 0.80

Tested by

no test coverage detected