MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / docRow

Method docRow

pkg/sql/sem/tree/pretty.go:600–613  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

598}
599
600func (node *Window) docRow(p *PrettyCfg) pretty.TableRow {
601 if node == nil || len(*node) == 0 {
602 return emptyRow
603 }
604 d := make([]pretty.Doc, len(*node))
605 for i, e := range *node {
606 d[i] = pretty.Fold(pretty.Concat,
607 pretty.Text(e.Name.String()),
608 p.keywordWithText(" ", "AS", " "),
609 p.Doc(e),
610 )
611 }
612 return p.row("WINDOW", p.commaSeparated(d...))
613}
614
615func (node *With) doc(p *PrettyCfg) pretty.Doc {
616 return p.unrow(node.docRow(p))

Callers 1

docMethod · 0.95

Calls 7

FoldFunction · 0.92
TextFunction · 0.92
keywordWithTextMethod · 0.80
DocMethod · 0.80
rowMethod · 0.80
commaSeparatedMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected