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

Method doc_distinct

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

Source from the content-addressed store, hash-verified

1136 }
1137
1138 fn doc_distinct<'a, T: AstInfo>(&'a self, v: &'a Distinct<T>) -> RcDoc<'a> {
1139 match v {
1140 Distinct::EntireRow => RcDoc::text("DISTINCT"),
1141 Distinct::On(cols) => bracket(
1142 "DISTINCT ON (",
1143 comma_separate(|c| self.doc_expr(c), cols),
1144 ")",
1145 ),
1146 }
1147 }
1148
1149 fn doc_select<'a, T: AstInfo>(&'a self, v: &'a Select<T>) -> RcDoc<'a> {
1150 let mut docs = vec![];

Callers 1

doc_selectMethod · 0.80

Calls 3

bracketFunction · 0.85
comma_separateFunction · 0.85
doc_exprMethod · 0.80

Tested by

no test coverage detected