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

Function comma_separated

src/sql-pretty/src/util.rs:68–73  ·  view source on GitHub ↗
(v: I)

Source from the content-addressed store, hash-verified

66}
67
68pub(crate) fn comma_separated<'a, I>(v: I) -> RcDoc<'a, ()>
69where
70 I: IntoIterator<Item = RcDoc<'a, ()>>,
71{
72 RcDoc::intersperse(v, RcDoc::concat([RcDoc::text(","), RcDoc::line()])).group()
73}
74
75pub(crate) fn bracket<A: Into<String>, B: Into<String>>(left: A, d: RcDoc, right: B) -> RcDoc {
76 bracket_doc(

Callers 8

doc_create_sourceMethod · 0.70
doc_webhook_checkMethod · 0.70
doc_create_tableMethod · 0.70
doc_create_subsourceMethod · 0.70
doc_valuesMethod · 0.70
comma_separateFunction · 0.70
fmtMethod · 0.50

Calls 2

concatFunction · 0.85
groupMethod · 0.80

Tested by

no test coverage detected