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

Method bound_identifiers

src/sql-parser/src/ast/defs/query.rs:374–389  ·  view source on GitHub ↗

Iterates through the identifiers used in bindings.

(&self)

Source from the content-addressed store, hash-verified

372 }
373 /// Iterates through the identifiers used in bindings.
374 pub fn bound_identifiers(&self) -> impl Iterator<Item = &Ident> {
375 let mut names = Vec::new();
376 match self {
377 CteBlock::Simple(list) => {
378 for cte in list.iter() {
379 names.push(&cte.alias.name);
380 }
381 }
382 CteBlock::MutuallyRecursive(MutRecBlock { options: _, ctes }) => {
383 for cte in ctes.iter() {
384 names.push(&cte.name);
385 }
386 }
387 }
388 names.into_iter()
389 }
390}
391
392impl<T: AstInfo> AstDisplay for CteBlock<T> {

Callers 2

fold_queryMethod · 0.80
plan_ctesFunction · 0.80

Calls 3

iterMethod · 0.45
pushMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected