MCPcopy Create free account
hub / github.com/dolthub/doltgresql / docRow

Method docRow

postgres/parser/sem/tree/pretty.go:607–620  ·  view source on GitHub ↗
(p *PrettyCfg)

Source from the content-addressed store, hash-verified

605}
606
607func (node *Window) docRow(p *PrettyCfg) pretty.TableRow {
608 if node == nil || len(*node) == 0 {
609 return emptyRow
610 }
611 d := make([]pretty.Doc, len(*node))
612 for i, e := range *node {
613 d[i] = pretty.Fold(pretty.Concat,
614 pretty.Text(e.Name.String()),
615 p.keywordWithText(" ", "AS", " "),
616 p.Doc(e),
617 )
618 }
619 return p.row("WINDOW", p.commaSeparated(d...))
620}
621
622func (node *With) doc(p *PrettyCfg) pretty.Doc {
623 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