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

Method docRow

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

Source from the content-addressed store, hash-verified

580}
581
582func (node *From) docRow(p *PrettyCfg) pretty.TableRow {
583 if node == nil || len(node.Tables) == 0 {
584 return emptyRow
585 }
586 d := node.Tables.doc(p)
587 if node.AsOf.Expr != nil {
588 d = p.nestUnder(
589 d,
590 p.Doc(&node.AsOf),
591 )
592 }
593 return p.row("FROM", d)
594}
595
596func (node *Window) doc(p *PrettyCfg) pretty.Doc {
597 return p.unrow(node.docRow(p))

Callers 10

docMethod · 0.95
docTableMethod · 0.45
docTableMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45
docMethod · 0.45

Calls 4

nestUnderMethod · 0.80
DocMethod · 0.80
rowMethod · 0.80
docMethod · 0.65

Tested by

no test coverage detected