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

Method doc_display_pass

src/sql-pretty/src/doc.rs:37–39  ·  view source on GitHub ↗

Use when the AstDisplay trait is what we want.

(&self, v: &T)

Source from the content-addressed store, hash-verified

35
36 // Use when the AstDisplay trait is what we want.
37 fn doc_display_pass<'a, T: AstDisplay>(&self, v: &T) -> RcDoc<'a, ()> {
38 RcDoc::text(v.to_ast_string(self.config.format_mode))
39 }
40
41 pub(crate) fn doc_create_source<'a, T: AstInfo>(
42 &'a self,

Callers 15

doc_displayMethod · 0.80
doc_create_sourceMethod · 0.80
doc_webhook_checkMethod · 0.80
doc_create_tableMethod · 0.80
doc_create_connectionMethod · 0.80
doc_create_sinkMethod · 0.80
doc_create_subsourceMethod · 0.80
doc_create_clusterMethod · 0.80
doc_create_indexMethod · 0.80

Calls 1

to_ast_stringMethod · 0.80

Tested by

no test coverage detected