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

Method doc_cte

src/sql-pretty/src/doc.rs:1005–1011  ·  view source on GitHub ↗
(&'a self, v: &'a Cte<T>)

Source from the content-addressed store, hash-verified

1003 }
1004
1005 fn doc_cte<'a, T: AstInfo>(&'a self, v: &'a Cte<T>) -> RcDoc<'a> {
1006 RcDoc::concat([
1007 RcDoc::text(format!("{} AS", v.alias)),
1008 RcDoc::line(),
1009 bracket("(", self.doc_query(&v.query), ")"),
1010 ])
1011 }
1012
1013 fn doc_mutually_recursive<'a, T: AstInfo>(&'a self, v: &'a CteMutRec<T>) -> RcDoc<'a> {
1014 let mut docs = Vec::new();

Callers 1

doc_queryMethod · 0.80

Calls 3

concatFunction · 0.85
bracketFunction · 0.85
doc_queryMethod · 0.80

Tested by

no test coverage detected