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

Method doc_values

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

Source from the content-addressed store, hash-verified

1057 }
1058
1059 fn doc_values<'a, T: AstInfo>(&'a self, v: &'a Values<T>) -> RcDoc<'a> {
1060 let rows =
1061 v.0.iter()
1062 .map(|row| bracket("(", comma_separate(|v| self.doc_expr(v), row), ")"));
1063 RcDoc::concat([RcDoc::text("VALUES"), RcDoc::line(), comma_separated(rows)])
1064 .nest(TAB)
1065 .group()
1066 }
1067
1068 fn doc_table_with_joins<'a, T: AstInfo>(&'a self, v: &'a TableWithJoins<T>) -> RcDoc<'a> {
1069 let mut docs = vec![self.doc_table_factor(&v.relation)];

Callers 1

doc_set_exprMethod · 0.80

Calls 8

bracketFunction · 0.85
comma_separateFunction · 0.85
concatFunction · 0.85
doc_exprMethod · 0.80
groupMethod · 0.80
comma_separatedFunction · 0.70
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected