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

Method doc_format_specifier

src/sql-pretty/src/doc.rs:570–581  ·  view source on GitHub ↗
(&self, v: &FormatSpecifier<T>)

Source from the content-addressed store, hash-verified

568 }
569
570 fn doc_format_specifier<T: AstInfo>(&self, v: &FormatSpecifier<T>) -> RcDoc<'_> {
571 match v {
572 FormatSpecifier::Bare(format) => nest_title("FORMAT", self.doc_display_pass(format)),
573 FormatSpecifier::KeyValue { key, value } => {
574 let docs = vec![
575 nest_title("KEY FORMAT", self.doc_display_pass(key)),
576 nest_title("VALUE FORMAT", self.doc_display_pass(value)),
577 ];
578 RcDoc::intersperse(docs, Doc::line()).group()
579 }
580 }
581 }
582
583 fn doc_external_references<'a>(&'a self, v: &'a ExternalReferences) -> RcDoc<'a> {
584 match v {

Callers 3

doc_create_sourceMethod · 0.80
doc_create_sinkMethod · 0.80

Calls 3

nest_titleFunction · 0.85
doc_display_passMethod · 0.80
groupMethod · 0.80

Tested by

no test coverage detected